@font-face {
  font-family: 'Made';
  src: url('/Fonts/MADE_Tommy_Soft_Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  font-family: 'Made', sans-serif;
  box-sizing: border-box;
}


/* Add general paragraph styling to use the grayish color */
p {
  color: #686868;
}

/* Ajuste para el texto de etiquetas del formulario */
.form-group label {
  font-weight: normal; /* Quita negrita */
  color: #686868; /* Aplica el mismo color gris */
}

/* Específicamente para los textos "Nombre*", "Número*", etc. */
.contactos label {
  font-weight: normal;
  color: #686868;
}

/* Encabezado - Increased height for gradient to extend below buttons */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 155px;
  /* Increased from 100px */
  padding: 30px 30px;
  background-image: url('/images/RECTANGULO\ DE\ ARRIBA-12.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  z-index: 2;
  overflow: hidden;
  /* Para contener elementos dentro del header */
}

.logo {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px;
  z-index: 3;
}

.logo img {
  height: 125px;
  width: auto;
}

/* Ajuste de la posición de los botones de navegación - ahora más arriba */
nav {
  position: absolute;
  top: 0;
  right: 20px;
  margin-top: 120px;
  /* Reduced from 140px to position buttons higher */
  z-index: 3;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 10px;
  position: relative;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 15px;
  position: relative;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #70a83b;
}

/* Modificado para mantener el efecto dentro del header */
nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  /* Reducido de -10px para que quede dentro del header */
  height: 10px;
  /* Reducido de 10px para ser más sutil */
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 0px 0px 10px 10px;
  /* Reducido para corresponder a la nueva altura */
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

nav ul li a:hover::after {
  transform: scaleX(1);
}

.nav-buttons {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 15px;
  margin-right: 15px;
  margin-top: 9px;
  z-index: 4;
  /* Aumentado para asegurar que esté por encima del degradado */
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background-color 0.3s;
  color: black;
}

.nav-btn:hover {
  background-color: #70a83b;
}

.nav-btn img {
  width: 20px;
  height: 20px;
}

/* Banner principal - Ajustado para el nuevo alto del header */
.main-banner {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 60vh;
  margin-top: -130px;
  /* Adjusted from -100px to account for taller header */
  z-index: 1;
  overflow: hidden;
  /* Para evitar que la imagen sobresalga */
}

.main-banner img {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
  z-index: -1;
  display: block;
  margin-top: 30px;
  /* Ajustado para bajar la imagen y que la frase no se superponga */
}

/* Contenido principal */
.content {
  padding: 50px 20px;
  position: relative;
  z-index: 2;
}

/* Sección de contactos - Ajustada según estilo del catálogo */
.contactos-section {
  position: relative;
  /* Cambiado de absolute a relative */
  color: #fff;
  padding: 20px 20px;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
  bottom: auto;
  /* Eliminado el posicionamiento inferior */
  left: auto;
  /* Eliminado el posicionamiento izquierdo */
}

.contactos-section h1 {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Título h2 con degradado mejorado */
.contactos h2 {
  position: relative;
  display: inline-block;
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
  margin-left: 10px;
}

.contactos h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50%;
  height: 15px;
  background: linear-gradient(to right, #70a83b, #fff);
}

.work-with-us h2 {
  position: relative;
  display: inline-block;
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
  margin-left: 10px;
}

.work-with-us h2::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 50%;
  height: 15px;
  background: linear-gradient(to right, #70a83b, #fff);
}

/* SECCIÓN DEL FORMULARIO - AJUSTADA PARA RESPONSIVE */
.form-group {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px auto;
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
}

.contactos-title {
  height: 100px;
  width: auto;
}

.contactos input,
.contactos textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Main Content */
main {
  padding: 40px;
  box-sizing: border-box;
  width: 100%;
  position: relative;
  z-index: 2;
}

h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: normal; /* Cambiado de bold a normal */
  margin-bottom: 5px;
  color: #686868; /* Añadido color gris */
}

.submit-btn {
  background-color: #70a83b;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 2px;
}

.info-item .icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
}

.info-item p {
  margin: 0;
  padding-top: 15px;
  font-size: 14px;
  color: #686868;
}

.cv-btn {
  display: inline-block;
  background-color: #70a83b;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.contact-info {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  margin: 20px auto;
  margin-bottom: 20px;
  width: 100%;
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
}

/* Contenedor del formulario y mapa */
.form-map-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 10px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.contactos,
.mapa {
  flex: 1;
  min-width: 250px;
  box-sizing: border-box;
}

/* Estilo del formulario */
.contact-form {
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}

/* Mapa responsivo */
.map-container {
  width: 100%;
  height: 600px;
  border-radius: 15px;
  overflow: hidden;
  margin-top: 90px;
  margin-left: 0;
  box-sizing: border-box;
}

/* Estilo del iframe */
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
}

/* Media queries mejorados según el catálogo */
@media (min-width: 992px) {
  .map-container {
    margin-left: 120px;
    width: 500px;
  }
}

@media (max-width: 1024px) {
  .main-banner {
    min-height: 50vh;
    margin-top: -80px;
  }
}

@media (max-width: 992px) {
  .form-map-container {
    flex-direction: column;
  }

  .contactos,
  .mapa {
    width: 100%;
    max-width: 100%;
  }

  .map-container {
    margin-top: 30px;
    height: 500px;
    margin-left: 0;
  }

  .contact-info {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  header {
    height: 120px;
    /* Adjusted for mobile but still keeping gradient extended */
    padding: 20px 20px;
    flex-direction: column;
    align-items: center;
  }

  .logo img {
    height: 100px;
  }

  nav {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 20px;
    width: 100%;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 10px 0;
  }

  .nav-buttons {
    position: relative;
    top: auto;
    right: auto;
    justify-content: center;
    margin: 15px 0;
  }

  .main-banner {
    min-height: 40vh;
    margin-top: -90px;
    /* Adjusted for mobile taller header */
  }

  .main-banner img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
  }

  .contactos h2,
  .work-with-us h2 {
    font-size: 30px;
  }

  .map-container {
    height: 400px;
  }

  .form-group {
    padding: 15px;
  }

  main {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  main {
    padding: 20px;
  }

  .contactos h2,
  .work-with-us h2 {
    font-size: 24px;
  }

  .contactos h2::after,
  .work-with-us h2::after {
    height: 10px;
  }

  .map-container {
    height: 300px;
    margin-top: 20px;
  }

  .form-group {
    padding: 12px;
  }

  .submit-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  header {
    height: 100px;
    /* Adjusted for smaller mobile screens */
    padding: 15px 15px;
  }

  .logo img {
    height: 80px;
  }

  .main-banner {
    min-height: 30vh;
    margin-top: -80px;
    /* Adjusted for smaller header on mobile */
  }
}

/* Solución para muy pequeñas pantallas */
@media (max-width: 360px) {
  .info-item {
    flex-direction: column;
    align-items: center;
  }

  .info-item p {
    text-align: center;
    padding-top: 5px;
  }
}

/* Footer */
footer {
  background: linear-gradient(to right, #333333, #70a83b);
  color: #fff;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer .social-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
}

footer .social-links img {
  height: 35px;
  width: 35px;
}

footer p {
  font-size: 12px;
  text-align: right;
  margin: 0;
  color: #fff;
  /* Keep footer text white for better contrast */
}
@media (min-width: 1600px) {
  body {
    max-width: 1400px;
    font-size: 18px;
  }

  .contenedor-principal {
    padding: 0 80px;
    gap: 40px;
  }

  h1 {
    font-size: 3rem;
  }

  /* Ajusta más secciones si es necesario */
}