@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --color-background: #e7e7e7;
  --color-background-alt: #bdb4fe;
  --color-border-active: #5b26db;
  --color-border-default: #d1d1d1;
  --color-highlight: #bdb4fe;
  --color-primary: #5b26db;
  --color-primary-active: #401c96;
  --color-text-default: #262626;
  --color-text-muted: #4f4f4f;
  --font-family-body: "Poppins", system-ui, sans-serif;
  --font-family-display: "Poppins", system-ui, sans-serif;
}

/* General */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  scroll-behavior: smooth;
  background-color: #f4f4f4;
}

/* Tipografía y Colores */
h2 {
  color: #2a3d3e;
  margin-bottom: 20px;
}
p {
  color: #262626;
  line-height: 1.6;
}

/* Hero */
#hero {
  background: url('img/Header-neologistics.png') no-repeat center center/cover;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.mini-logo {
  height: 1em;
  vertical-align: middle;
  margin-right: 0.5em;
}
.hero-content {
  position: absolute;
  right: 100px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 750px;
  text-align: right;
  font-family: "Poppins", sans-serif;
  background: transparent;
  padding: 30px;
  border-radius: 10px;
}
.btn {
  background-color: #e44c5c;
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  border: 2px solid #e44c5c;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.btn:hover {
  background-color: #46d9bd;
  border-color: #46d9bd;
  color: #2a3d3e;
}

/* Navbar */
#navbar {
  position: sticky;
  top: 0;
  background: #2a3439;  /* Gunmetal */
  padding: 20px 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
#navbar .navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  margin: 0 auto;
}
#navbar .logo {
  margin-right: 20px;
}
#navbar .logo img {
  height: 40px;
  width: auto;
  display: block;
  vertical-align: middle;
}
#navbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}
#navbar ul li {
  margin: 0 15px;
}
#navbar ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
#navbar ul li a:hover {
  color: #46d9bd;
}

/* Botón de menú hamburguesa (oculto en escritorio) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Menú desplegable móvil */
.nav-menu {
  /* Por defecto se mostrará como flex en escritorio */
  display: flex;
}
.nav-menu.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px; /* Ajusta según la altura del navbar */
  right: 0;
  background: #2a3439;
  width: 100%;
  text-align: center;
}
.nav-menu.active li {
  margin: 10px 0;
}

/* Media Query para dispositivos móviles */
@media (max-width: 768px) {
  /* Mostrar botón hamburguesa */
  .menu-toggle {
    display: block;
  }
  /* Ocultar el menú por defecto */
  .nav-menu {
    display: none;
  }
}

/* Sección Servicios: Oculta los párrafos en pantallas pequeñas */
@media (max-width: 768px) {
  /* Muestra el botón hamburguesa y oculta el menú por defecto */
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
  }

  /* En la sección Servicios, oculta los <p> */
  #servicios .service p {
    display: none;
  }
}

/* Secciones */
.section {
  padding: 60px 20px;
  text-align: center;
}

/* Sobre Nosotros */
#sobre-nosotros {
  background: white;
}

/* Servicios */
#servicios {
  background: #f8f9fa;
  padding: 60px 10%;
}
.services {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.service {
  text-align: center;
  width: 30%;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
.service:hover {
  transform: translateY(-5px);
}
.service i {
  font-size: 50px;
  color: #46d9bd;
}

/* Estilos para la sección "experiencia" */
.experiencia {
  padding: 60px 20px;
  background: white;
  text-align: center;
}

.experiencia .container {
  max-width: 1200px;
  margin: 0 auto;
}

.experiencia h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2a3d3e; /* Gunmetal */
}

.experiencia p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #262626;
  line-height: 1.6;
}

/* Indicadores de estadísticas */
.experiencia .stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.experiencia .stat-item {
  flex: 1;
  max-width: 200px;
}

.experiencia .stat-item h2 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #e44c5c; /* Color de acento, similar al hover de botones */
}

.experiencia .stat-item span {
  font-size: 1rem;
  color: #2a3d3e;
}

/* Llamada a la acción */
.experiencia .cta {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #262626;
}

/* Botón (se reutiliza el estilo ya definido) */
.experiencia .btn {
  background-color: #e44c5c;
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  border: 2px solid #e44c5c;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.experiencia .btn:hover {
  background-color: #46d9bd;
  border-color: #46d9bd;
  color: #2a3d3e;
}

/* Responsive ajustes para la sección "experiencia" */
@media (max-width: 768px) {
  .experiencia {
    padding: 40px 10px;
  }
  .experiencia h2 {
    font-size: 1.75rem;
  }
  .experiencia .stat-item h3 {
    font-size: 2.5rem;
  }
  .experiencia .stats {
    gap: 20px;
  }
}


/* Testimonios */
#testimonios {
  background: #f8f9fa; /* Fondo claro para contraste */
}
.testimonial {
  text-align: center;
  font-style: italic;
  color: #25303f;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Contacto */
#contacto {
  background: white;
  font-family: "Poppins", sans-serif;
}
#contacto form {
  display: flex;
  flex-direction: column;
  width: 37.5%;
  margin: auto;
  background: rgba(37, 48, 63, 0.8);
  padding: 30px;
  border-radius: 10px;
}
#contacto form fieldset {
  border: none;
  margin-bottom: 20px;
  padding: 10px;
}
/* Campo Origen y Destino */
#contacto fieldset:first-of-type .fs-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
#contacto fieldset:first-of-type .fs-label {
  width: 40%;
  text-align: left;
  color: white;
  font-weight: bold;
  margin: 0;
}
#contacto fieldset:first-of-type .fs-input {
  width: 55%;
  margin-left: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
}
/* Sección 1: Tipo de Transporte */
#contacto fieldset:nth-of-type(2) .fs-label {
  display: block;
  text-align: center;
  color: white;
  font-weight: bold;
  margin-bottom: 8px;
}
#contacto .tipo-transporte {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}
#contacto .tipo-transporte label {
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  display: block;
}
#contacto .tipo-transporte input {
  display: none;
}
#contacto .tipo-transporte .option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #46d9bd;
  padding: 15px;
  border-radius: 10px;
  width: 100px;
  height: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  color: white;
}
#contacto .tipo-transporte .option:hover {
  background: #e44c5c;
}
/* Al marcar una opción, se aplica el color de hover sin necesidad de hover */
#contacto .tipo-transporte input:checked + .option {
  background: #e44c5c;
}

#contacto .tipo-transporte .option i {
  font-size: 40px;
  color: white;
}
#contacto .tipo-transporte .option span {
  color: white;
}
/* Sección 2: Información Personal */
#contacto fieldset.info-personal .fs-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
#contacto fieldset.info-personal .fs-label {
  width: 40%;
  text-align: left;
  color: white;
  font-weight: bold;
  margin: 0;
}
#contacto fieldset.info-personal .fs-input,
#contacto fieldset.info-personal .fs-textarea {
  width: 55%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
}

/* Checkbox de Términos */
#contacto .fs-checkbox-field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}
#contacto .fs-checkbox-field .fs-checkbox {
  margin: 0;
}
#contacto .fs-checkbox-field label.fs-label {
  margin: 0;
  color: white;
  font-weight: bold;
}
.fs-checkbox-field label.fs-label a {
  color: white;
  text-decoration: none; /* Opcional: quita el subrayado si lo deseas */
}

.fs-checkbox-field label.fs-label a:hover {
  color: #46d9bd;
}

/* Botón de Envío */
#contacto button {
  background: #46d9bd;
  color: white;
  padding: 20px 40px;
  border: 2px solid #46d9bd;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  margin-top: 20px;
  width: 100%;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
}
#contacto button:hover {
  background: #e44c5c;
  border-color: #e44c5c;
}
/* Placeholders */
#contacto input::placeholder,
#contacto textarea::placeholder {
  color: white;
  font-weight: bold;
  font-family: "Poppins", sans-serif;
}

/* Footer */
footer {
  background: #25303f;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 20px;
}
footer p,
footer a {
  color: white;
}
footer a:hover {
  color: #46d9bd;
}
.social-icons {
  margin-top: 10px;
}
.social-icons a {
  color: white;
  font-size: 20px;
  margin: 0 10px;
  transition: color 0.3s;
}
.social-icons a:hover {
  color: #46d9bd;
}

/* Media Queries para optimización Responsive */
@media (max-width: 768px) {
  /* Ajustes en Navbar */
  #navbar {
    padding: 10px 0;
  }
  #navbar .navbar-container {
    width: 95%;
  }
  #navbar ul li {
    margin: 0 10px;
    font-size: 0.9rem;
  }
  #navbar .logo img {
    height: 35px;
  }
  
  /* Hero: reduce offsets y adapta el ancho */
  .hero-content {
    right: 20px;
    left: 20px;
    max-width: 100%;
    padding: 20px;
    /* Se mantiene la alineación a la derecha para preservar la estética, 
       aunque se puede cambiar a center si se prefiere */
  }
  
  /* Sección Contacto: adapta el ancho del formulario */
  #contacto form {
    width: 80%;
  }
  
  /* Tipo de Transporte: ajusta distribución de opciones */
  #contacto .tipo-transporte {
    flex-direction: column;
    align-items: center;
  }
  #contacto .tipo-transporte .option {
    width: 80%;
    margin-bottom: 10px;
  }
  
  /* Ajustes generales en secciones */
  .section {
    padding: 40px 10px;
  }
}

@media (max-width: 480px) {
  /* Ajustes finos para dispositivos muy pequeños */
  #navbar ul li {
    margin: 0 8px;
    font-size: 0.85rem;
  }
  .hero-content {
    padding: 15px;
    font-size: 0.85rem;
  }
  #contacto form {
    width: 90%;
    padding: 20px;
  }
}
  
/* New styles for the added sections */
.fs-radio-group {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}
.fs-radio-group input {
  width: auto;
}
.fs-radio-group label {
  padding-left: 1rem;
}
.fs-textarea {
  margin-top: 1rem;
}
