/*
 * Estilos personalizados para Ingelect
 * Este archivo define los colores de marca y ajustes visuales
 * para crear una interfaz moderna y profesional. Los colores
 * principales se inspiran en el logotipo de la empresa.
 */

/* Variables de colores */
:root {
  --primary-color: #0b3d6a; /* azul oscuro del logotipo */
  --secondary-color: #e8a913; /* amarillo de rayo */
  --accent-color: #c46c0a; /* naranja para detalles */
  --light-color: #f7f7f7;
  --dark-color: #1a1a1a;
}

* {
  box-sizing: border-box;
  max-width: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--dark-color);
  background-color: var(--light-color);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Barra de navegación */
.navbar {
  background-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 40px;
  margin-right: 0.5rem;
}

.navbar-nav .nav-link {
  color: #ffffff;
  font-weight: 500;
  margin-right: 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--secondary-color);
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  background: url('../images/hero.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero p {
    font-size: 1.5rem;
  }
}

/* Secciones generales */
section {
  padding: 4rem 0;
}

.section-title {
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--primary-color);
  text-align: center;
}

/* Servicios */
.service-card {
  background-color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Proyectos */
.project-card {
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.project-card img {
  object-fit: cover;
  width: 100%;
  height: 200px;
}

.project-card .card-body {
  padding: 1rem;
}

/* Sobre nosotros */
.about-img {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

/* Formulario de contacto */
#contact-form .form-control {
  border-radius: 0;
  box-shadow: none;
  border-color: #ced4da;
}

#contact-form .form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(232, 169, 19, 0.25);
}

#contact-form .btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
}

#contact-form .btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 2rem 0;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--secondary-color);
}

.social-icon {
  font-size: 1.25rem;
  margin-right: 0.75rem;
  color: #ffffff;
  transition: color 0.2s ease;
}

.social-icon:hover {
  color: var(--secondary-color);
}

.card:hover {
  transform: translateY(-4px);
  transition: transform 0.2s ease;
  cursor: pointer
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  text-decoration: none;
  color: white;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}
