/* 
  Archivo: styles.css
  Proyecto: Telematics Services Online
  Función: Estilos para la landing page principal
  Autor: GPT-4 para Torex
*/

/* 1. Establece la fuente base y remueve márgenes por defecto */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #f4f7fa; /* Fondo suave y profesional */
  color: #333; /* Texto principal */
}

/* 2. Encabezado principal */
.main-header {
  text-align: center;
  padding: 20px 15px;
  background-color: #daf9c3; /* Fondo blanco */
  border-bottom: 3px solid #0077cc; /* Línea azul corporativa */
}

/* 3. Logo */
.logo {
  height: 130px;
  margin-bottom: 10px;
}

/* 4. Título principal */
.main-header h1 {
  font-size: 38px;
  margin: 0;
  color: #0d2c5d; /* Azul oscuro profesional */
}

/* 5. Eslogan */
.tagline {
  font-size: 16px;
  color: #555;
  margin-top: 5px;
}

/* 6. Contenedor de servicios con diseño de grilla */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
}

/* 7. Cada tarjeta de servicio */
.service-card {
  width: 300px;
  background-color: #f4e3fc;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  text-decoration: none; /* Elimina subrayado */
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 8. Hover visual (al pasar el mouse) */
.service-card:hover {
  transform: translateY(-5px); /* Se eleva */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

/* 9. Ícono de servicio */
.service-card img {
  height: 80px;
  margin-bottom: 15px;
}

/* 10. Título de cada tarjeta */
.service-card h2 {
  font-size: 20px;
  margin: 10px 0;
  color: #3c38e4;
}

/* 11. Texto descriptivo */
.service-card p {
  font-size: 15px;
  color: #444;
}

/* 12. Pie de página */
footer {
  background-color: #0d2c5d;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 14px;
  margin-top: 40px;
}

/* 13. Adaptación para móviles */
@media (max-width: 768px) {
  .services {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 90%;
  }

  .main-header h1 {
    font-size: 24px;
  }

  .tagline {
    font-size: 14px;
  }
}
