/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@400;600;700&display=swap');

/* Base styles */
body {
  margin: 0;
  font-family: 'Lexend Deca', sans-serif;
  line-height: 1.6;
  color: #0E2240;
  background-color: #ffffff;
}

a {
  text-decoration: none;
}

/* Header */
header {
  background-color: #0E2240;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  flex-wrap: wrap;
}

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

header .logo img {
  height: 48px;
  margin-right: 12px;
}

header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

header nav a {
  color: #ffffff;
  margin-left: 24px;
  font-weight: 500;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #14B8A6;
}

/* Hero section */
/* Hero section uses a dark gradient to dar más profundidad */
/* Hero section now includes a background image of logistics with a dark gradient overlay */
.hero {
  background: linear-gradient(135deg, rgba(14, 34, 64, 0.55) 0%, rgba(11, 31, 51, 0.55) 100%), url('images/logistics1.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  /* Reducimos el espacio superior e inferior del hero para que no se sienta tan extenso */
  padding: 100px 20px;
}

/* Container for hero content to improve layout on top of the image */
.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

/* Hero logo image styling */
.hero-logo {
  margin-bottom: 24px;
}
.hero-logo img {
  /* Aumentamos el tamaño del logotipo para darle mayor protagonismo */
  /* Amplía aún más el tamaño del logotipo para destacarlo en la página de inicio. 
     Se mantiene responsive con un máximo del 95% para pantallas pequeñas. */
  width: 450px;
  max-width: 95%;
  height: auto;
}

/* Hero headings (split slogan) */
.hero h2 {
  font-size: 3rem;
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
}

/* Subheading text under the slogan */
.hero p {
  font-size: 1.3rem;
  margin: 20px auto 40px;
  color: #74A7D8;
  max-width: 600px;
}

.btn {
  display: inline-block;
  background-color: #E47B2C;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #c9641e;
}

/* Estilos para los iconos de cada servicio */
/* Contenedor circular para el icono de cada servicio */
.service-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: 16px;
  background-color: #E47B2C; /* naranja corporativo */
}

/* Ajuste de tamaño de los íconos dentro del contenedor */
.service-icon-wrapper img {
  width: 24px;
  height: 24px;
}


/* Services section */
.services {
  /* Reducimos el espaciado vertical entre secciones */
  padding: 60px 20px;
  background-color: #f7f9fc;
  text-align: center;
}

/* Differentiators section */
.differentiators {
  padding: 60px 20px;
  background-color: #ffffff;
}

.differentiators h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 40px;
  color: #0E2240;
  font-weight: 600;
}

.diff-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.diff-text {
  flex: 1 1 480px;
}

.differentiator {
  /* Each differentiator entry appears one below the other */
  margin-bottom: 24px;
}


.differentiator h3 {
  font-size: 1.2rem;
  margin: 0 0 4px;
  color: #0E2240;
  font-weight: 600;
}

.differentiator p {
  font-size: 0.95rem;
  margin: 0;
  color: #6F7C8A;
}

.diff-image {
  flex: 1 1 480px;
  /* Limitar la altura de la imagen para evitar que la sección se vea desproporcionada */
  max-height: 300px;
  height: 300px;
  overflow: hidden;
}

.diff-image img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  /* Para fotografías se utiliza 'cover' para llenar el contenedor recortando de forma proporcional */
  object-fit: cover;
}

@media (max-width: 768px) {
  .diff-content {
    flex-direction: column;
  }
  .diff-image,
  .diff-text {
    flex: 1 1 100%;
  }
  .diff-image {
    margin-top: 20px;
  }
}

.services h2 {
  font-size: 2.4rem;
  margin-bottom: 40px;
  color: #0E2240;
  font-weight: 600;
}

.service-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.service {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  /* Barra superior de color para enfatizar cada tarjeta de servicio */
  border-top: 4px solid #E47B2C;
  flex: 1 1 260px;
  max-width: 260px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Efecto al pasar el cursor sobre una tarjeta de servicio */
.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.service h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #0E2240;
  font-weight: 600;
}

.service p {
  font-size: 0.95rem;
  color: #6F7C8A;
  flex-grow: 1;
}

/* About section */
.about {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.about h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: #0E2240;
  font-weight: 600;
}

.about p {
  font-size: 1rem;
  color: #6F7C8A;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Contact section */
.contact {
  background-color: #0E2240;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.contact h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  font-weight: 600;
  color: #ffffff;
}

.contact p {
  font-size: 1rem;
  color: #74A7D8;
  margin-bottom: 30px;
}

.contact a.btn {
  background-color: #E47B2C;
  padding: 14px 32px;
}

/* Hover state for contact button */
.contact a.btn:hover {
  background-color: #c9641e;
}

/* Footer */
footer {
  background-color: #0E2240;
  color: #6F7C8A;
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .services h2,
  .about h2,
  .contact h2 {
    font-size: 2rem;
  }
  .service-container {
    gap: 20px;
  }
}