/* Reinicio y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Encabezado */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e8ecef;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
}

/* Navegación de escritorio */
.nav-desktop {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-desktop a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-desktop a:hover {
  color: #2c5aa0;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: #2c5aa0;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-desktop a:hover::after {
  width: 100%;
}

.header-contact {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #5a6c7d;
}

.contact-item i {
  color: #2c5aa0;
  font-size: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2c5aa0;
}

/* Navegación móvil */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #e8ecef;
}

.nav-mobile a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f8f9fa;
  transition: color 0.3s ease;
}

.nav-mobile a:hover {
  color: #c53030;
}

.mobile-contact-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e8ecef;
}

.mobile-contact-info .contact-item {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

/* Sección principal */
.hero {
  background: linear-gradient(135deg, #dce3e7 0%, #354677 100%);
  color: white;
  padding: 8rem 0 5rem;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>')
    no-repeat bottom;
  background-size: cover;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-logos {
  margin-bottom: 2rem;
}

.gescom-logo {
  height: 100px;
  width: auto;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: #e3f2fd;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Poppins", sans-serif;
}

.btn-primary {
  background: #25d366;
  color: white;
}

.btn-primary:hover {
  background: #20b954;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

.btn-whatsapp {
    background: #55c37e;
    color: #3d4b59;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.btn-whatsapp:hover {
  background: #20b954;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Imagen principal */
.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

.dashboard-mockup {
  width: 400px;
  height: 280px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 0;
  position: relative;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
}

.mockup-screen {
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
}

.screen-header {
  background: linear-gradient(135deg, #2c3e50 0%, #81a3b9 50%, #2c5aa0 100%);
  color: white;
}

.screen-dots {
  display: flex;
  gap: 0.5rem;
}

.screen-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.screen-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.screen-content {
  padding: 1.5rem;
  height: calc(100% - 60px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chart-placeholder {
  flex: 1;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2c5aa0;
}

.chart-placeholder i {
  font-size: 3rem;
}

.stats-row {
  display: flex;
  gap: 1rem;
}

.stat-item {
  flex: 1;
  background: white;
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-item i {
  color: #2c5aa0;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.stat-item span {
  font-size: 0.7rem;
  color: #5a6c7d;
  font-weight: 500;
}

/* Sección de características */
.features {
  padding: 5rem 0;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.section-header p {
  font-size: 1.2rem;
  color: #5a6c7d;
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e8ecef;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2c3e50 0%, #81a3b9 50%, #2c5aa0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.feature-card p {
  color: #5a6c7d;
  line-height: 1.6;
}

/* Sección acerca de */
.about {
  padding: 5rem 0;
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}

.about-text p {
  color: #5a6c7d;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1.1rem;
}

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

.stat {
  text-align: center;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
  color: #2c5aa0;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #5a6c7d;
  font-weight: 500;
}

/* Línea de tiempo */
.timeline-container {
  background: #f8f9fa;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e8ecef;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item.active .timeline-year {
  background: #2c5aa0;
  color: white;
}

.timeline-year {
  width: 120px;
  background: white;
  color: #2c5aa0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  border: 2px solid #e8ecef;
  position: relative;
  z-index: 2;
}

.timeline-content {
  margin-left: 2rem;
  flex: 1;
}

.timeline-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: #5a6c7d;
  font-size: 0.95rem;
}

/* Sección de servicios */
.services {
  padding: 5rem 0;
  background: #f8f9fa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e8ecef;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2c3e50 0%, #81a3b9 50%, #2c5aa0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.service-card p {
  color: #5a6c7d;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #5a6c7d;
}

.service-features i {
  color: #27ae60;
  font-size: 1rem;
}

/* Sección de clientes */
.clients {
  padding: 5rem 0;
  background: white;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  align-items: center;
}

.client-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e8ecef;
  transition: all 0.3s ease;
  position: relative;
}

.client-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.client-logo img {
  max-height: 50px;
  max-width: 150px;
  object-fit: contain;
}

.logo-placeholder {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5a6c7d;
  text-align: center;
  padding: 1rem;
}

/* Sección de contacto */
.contact {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1c1f23a6 0%, #1e3a8a99 100%);
  color: white;
}

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

.contact-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: #e3f2fd;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  text-align: left;
}

.contact-details .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.2rem;
  color: white;
}

.contact-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-text p {
  color: #e3f2fd;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.contact-buttons {
  text-align: center;
}

/* Pie de página */
.footer {
  background: #7890a9;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-section h3 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ecf0f1;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  color: #bdc3c7;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-contact p,
.support-hours p {
  color: #bdc3c7;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-contact i {
  color: #3d5e75;
  margin-right: 0.5rem;
  width: 15px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #20b954;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 2rem;
  text-align: center;
  color: #bdc3c7;
  font-size: 0.9rem;
}

/* Diseño responsivo */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .header-contact {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-mobile.active {
    display: flex;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .dashboard-mockup {
    width: 320px;
    height: 220px;
  }

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

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

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

  .timeline::before {
    left: 30px;
  }

  .timeline-year {
    width: 60px;
    font-size: 0.8rem;
    padding: 0.5rem;
  }

  .timeline-content {
    margin-left: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

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

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

/* Desplazamiento suave */
html {
  scroll-behavior: smooth;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.service-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Estados de carga */
.client-logo img {
  transition: opacity 0.3s ease;
}

.client-logo img[style*="display: none"] + .logo-placeholder {
  display: flex !important;
}
