* {
  box-sizing: border-box;
  font-family: Roboto, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.formulario h5 {
  font-family: Poppins, sans-serif;
}

.contenedor-principal {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.formulario,
.imagen-lateral {
  height: 100%;
}

.formulario {
  flex: 0 0 70%;
  padding: 30px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.formulario label {
  margin-top: 15px;
  font-weight: 500;
}
h6 {
  color: #3571e6;
  font-size: 30px;
  text-transform: uppercase;
}

.formulario h3 {
  color: #3571e6;
  font-size: 30px;
  text-transform: uppercase;
}
.formulario h5 {
  margin-bottom: 50px;
  color: #333;
  font-size: 70px;
  text-transform: uppercase;
}
.formulario h2 {
  margin-bottom: 50px;
  color: #333;
}

.formulario form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.campo-form {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
}

.formulario input,
.formulario select {
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #000000;
  border-radius: 5px;
  width: 80%;
  transition: border-color 0.3s ease;
}
.formulario input:focus,
.formulario select:focus {
  border-color: #3571e6;
  outline: none;
}

.formulario button {
  background-color: #3571e6;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.formulario button:hover {
  background-color: #3571e6;
  transform: translateY(-1px);
}

.formulario input[type='file'] {
  padding: 2.5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #f9f9f9;
  cursor: pointer;
  font-size: 14px;
}
.formulario input[type='file']::file-selector-button {
  background: #3571e6;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  margin-right: 10px;
}
.formulario input[type='file']::file-selector-button:hover {
  background: #3571e6;
  transform: translateY(-1px);
}

.div-boton {
  flex: 1 1 100%;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.imagen-lateral {
  flex: 0 0 30%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}
.imagen-lateral img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.titulo-sectores {
  color: #ffffff;
  font-size: 32px;
  text-align: center;
  margin: 0 0 2rem 0;
  font-weight: 700;
  text-transform: uppercase;
}

.item-sector {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: center;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  width: 290px;
  height: 65%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
  cursor: default;
  overflow: hidden;
  background-color: #3571e6;
  z-index: 0;
}

.item-sector::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: #3571e6;
  filter: blur(30px);
  opacity: 0.9;
  z-index: -1;
}

.item-sector h3,
.item-sector p {
  color: #ffffff;
}
.item-sector:hover {
  transform: none;
}
.item-sector:hover h3,
.item-sector:hover p {
  color: #ffffff;
}

.item-sector i {
  display: none !important;
}

.item-sector p {
  font-size: 20px;
}
.item-sector h3 {
  font-size: 25px;
  margin-bottom: 10px;
}

h4 {
  color: white;
  text-align: center;
}

.scroll-contenedor {
  width: 100%;
  overflow: hidden;
  background: black;
  padding: 5rem 1rem 3rem;
  height: auto;
}
.cinta {
  display: flex;
  will-change: transform;
  height: 100%;
}
.scroll-sectores {
  display: flex;
  gap: 1rem;
  margin: 0 auto;
  padding: 0;
  height: 100%;
  justify-content: center;
}
.scroll-sectores:last-child {
  padding-left: 1rem;
}
.scroll-sectores:hover {
  animation-play-state: paused;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.popup-contenido {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  width: 90%;
  max-width: 700px;
  height: 80%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
.cerrar-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.error-msg {
  color: red;
  font-size: 14px;
  display: none;
}

@media (min-width: 800px) {
  .campo-form {
    flex: 1 1 45%;
  }
  .campo-form.full-width {
    flex: 1 1 100%;
  }

  .scroll-contenedor {
    height: 100dvh;
  }
}

@media (max-width: 800px) {
  .contenedor-principal {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .imagen-lateral {
    display: none !important;
  }

  .formulario {
    order: 1;
    position: relative;
    z-index: 2;
  }

  .campo-form {
    flex: 1 1 100%;
  }
  .formulario input,
  .formulario select {
    width: 100% !important;
  }
  .formulario button {
    background-color: #3571e6;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease, transform 0.15s ease;
  }

  .formulario h3 {
    color: #3571e6;
    font-size: 15px;
    text-transform: uppercase;
  }
  .formulario h5 {
    margin-bottom: 50px;
    color: #333;
    font-size: 50px;
    text-transform: uppercase;
  }
}
