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

p {
  color: #686868;
}

/* Encabezado */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 95px;
  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;
}

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

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

nav {
  position: absolute;
  top: 0;
  right: 20px;
  margin-top: 120px;
  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: #4CAF50;
}

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);
}

/* Solución completa para el banner principal */
.main-banner {
  position: relative;
  width: 100%;
  height: auto;
  /* Cambiado de altura fija a auto */
  min-height: 60vh;
  /* Altura mínima para escritorio */
  margin-top: -100px;
  z-index: 1;
}

.main-banner img {
  position: relative;
  /* Cambiado de absolute a relative */
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  /* Permitir que la altura se ajuste automáticamente */
  max-height: 100vh;
  object-fit: cover;
  z-index: -1;
  display: block;
  /* Asegurar que la imagen se comporta como un bloque */
}

.nav-buttons {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 15px;
  margin-right: 15px;
  margin-top: 9px;
}

.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: #4CAF50;
}

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

.content {
  padding: 50px 20px;
}

/* Estilos específicos del formulario */
.form-container {
  max-width: 100%;
  /* Ocupar todo el ancho disponible */
  width: 90%;
  /* Ajuste opcional para no llegar a los bordes */
  margin: 0 auto;
  padding: 20px;
}

.form-title {
  font-size: 40px;
  color: #333;
  margin-bottom: 40px;
  position: relative;
  text-align: left;
}

.form-p {
  font-size: 20px;
  color: #333;
  margin-bottom: 40px;
  position: relative;
  padding-left: 0;
  text-align: left;
}

.form-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background-color: #4CAF50;
  margin-right: 8px;
  border-radius: 2px;
}

.form-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 100%;
  /* Hacer que la línea abarque todo */
  height: 15px;
  background: linear-gradient(to right, #4CAF50, #fff);
}

.form-field {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-field label {
  display: block;
  color: #333;
  margin-bottom: 8px;
  font-size: 16px;
}

.form-field label::after {
  content: '*';
  color: #4CAF50;
  margin-left: 2px;
}

.form-field input {
  width: 100%;
  /* Ocupar todo el espacio disponible */
  max-width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #fff;
  font-size: 14px;
  color: #666;
  box-sizing: border-box;
}

.form-field input::placeholder {
  color: #999;
}

/* Estilos para la sección de CV */
.cv-upload {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-top: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cv-upload p:first-child {
  color: #4CAF50;
  font-weight: bold;
  margin-bottom: 5px;
}

.file-info {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.cv-upload-btn {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #4CAF50;
  color: #4CAF50;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
}

.cv-upload-btn::before {
  content: '↑';
  margin-right: 8px;
  font-size: 18px;
}

/* Ajuste del título principal */
.form-title {
  font-size: 40px;
  color: #333;
  margin-bottom: 40px;
  position: relative;
  padding-left: 20px;
}

.form-title::after {
  content: '';
  position: absolute;
  left: 20px;
  bottom: -15px;
  width: 50%;
  height: 15px;
  background: linear-gradient(to right, #4CAF50, #fff);
}

/* Estilos para el asterisco verde */
.required {
  color: #4CAF50;
}

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

footer p {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 5px;
}

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

footer p {
  font-size: 12px;
  margin: 0;
}

.file-display {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#file-name {
  color: #4CAF50;
  font-size: 14px;
  font-weight: 500;
}

.submit-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: none;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background: #45a049;
}

/* Media queries específicas para el banner y logo */
@media (max-width: 1024px) {
  .main-banner {
    min-height: 50vh;
    margin-top: -80px;
    /* Ajustar el margen superior */
  }

  .logo img {
    height: 100px;
    /* Ajusta el tamaño del logo */
  }
}

@media (max-width: 768px) {
  header {
    height: 80px;
    /* Reducir altura del header */
    padding: 20px 20px;
  }

  .logo img {
    height: 100px;
    /* Reducir tamaño del logo */
  }

  .main-banner {
    min-height: 40vh;
    margin-top: -60px;
  }

  /* Asegurar que la imagen se muestra completa */
  .main-banner img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 480px) {
  header {
    height: 60px;
    padding: 15px 15px;
  }

  .logo img {
    height: 80px;
  }

  .main-banner {
    min-height: 30vh;
    margin-top: -40px;
  }
}
@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 */
}