/* Estilos generales del formulario */
body {
  font-family: "Urbanist", sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

.hero-productor {
  position: relative;
  background-color: #f5faf2;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 80px;
  font-family: "Urbanist", sans-serif;
}
/* Calcula el espacio basado en la altura del navbar */
header.fixed-top + * {
  margin-top: calc(
    3rem + 30px
  ); /* Ajusta el 40px según cuánto más quieres que baje */
  display: block;
}

/* Versión responsive */
@media (max-width: 992px) {
  header.fixed-top + * {
    margin-top: calc(3rem + 30px);
  }
}

/* Estilos para el formulario */
.form-card {
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;

  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 25px 40px rgba(0, 0, 0, 0.2);
  transform-origin: center bottom;
  font-family: "Urbanist", sans-serif;
}

.form-card:hover {
  transform: translateY(-4px);
}

@media (max-width: 991.98px) {
  .hero-productor {
    padding-top: 40px;
  }

  .hero-productor .col-lg-6.order-lg-1 {
    transform: translateY(-40px);
  }
}

.card-header {
  background: linear-gradient(135deg, #2e7d32, #4caf50) !important;
  border-bottom: none !important;
}
.container .row {
  font-family: "Urbanist", sans-serif !important;
  font-weight: 30 !important;
}
h1 {
  font-weight: 600;
  font-family: "Urbanist", sans-serif !important;
  color: #198754;
}

.hero-productor .lead {
  font-size: 1.25rem;
  color: #555555b4;
  margin-bottom: 2rem;
}
.card-header h3 {
  color: white !important;
  font-weight: 400;
  letter-spacing: px;
}

.card-body {
  background-color: #fff;
}

/* Estilos para los inputs */
.form-control,
.form-select {
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

/* Estilos para el botón */
.btn-success {
  background-color: #4caf50;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  background: linear-gradient(135deg, #2e7d32, #4caf50);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos para el select múltiple */
.bootstrap-select .dropdown-toggle {
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background-color: white;
}

.bootstrap-select.show .dropdown-toggle {
  border-color: #4caf50;
  box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25);
}

.bootstrap-select .dropdown-menu {
  border-radius: 8px;
  margin-top: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bootstrap-select .dropdown-item.active,
.bootstrap-select .dropdown-item:active {
  background-color: #e8f5e9;
  color: #2e7d32;
}

/* Estilos para los beneficios */
.benefits-producers .benefit-item {
  background-color: white;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.benefits-producers .benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #c8e6c9;
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e8f5e9;
  border-radius: 50%;
  color: #4caf50;
}
.h2-green-dark {
  color: #006400; /* Código hexadecimal para verde oscuro */
}

/* Títulos con buen contraste */
h1,
h2,
h3,
h4 {
  color: #2e7d32;
}

h1 {
  font-weight: 700;
}

/* Decoraciones */
.decoracion {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.circulo {
  position: absolute;
  opacity: 0.1;
}

.circulo1 {
  width: 150px;
  top: 10%;
  left: 5%;
  animation: float 6s ease-in-out infinite;
}

.circulo2 {
  width: 200px;
  bottom: 15%;
  right: 8%;
  animation: float 8s ease-in-out infinite;
  animation-delay: 1s;
}

.circulo3 {
  width: 100px;
  top: 40%;
  right: 15%;
  animation: float 5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.circulo4 {
  width: 120px;
  bottom: 25%;
  left: 10%;
  animation: float 7s ease-in-out infinite;
  animation-delay: 1.5s;
}

.circulo5 {
  width: 80px;
  top: 20%;
  right: 25%;
  animation: float 9s ease-in-out infinite;
}

.circulo6 {
  width: 180px;
  bottom: 30%;
  left: 20%;
  animation: float 10s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Aguacate decorativo */
.aguacate-deco {
  position: absolute;
  width: 400px;
  left: 30%;
  top: -5%;
  z-index: 0;
  animation: float 6s ease-in-out infinite;
  animation-delay: 0.4s;
  opacity: 0.2;
}

@keyframes flote {
  0% {
    transform: translateY(0.5px);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-productor {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .circulo1,
  .circulo2,
  .circulo3,
  .circulo4,
  .circulo5,
  .circulo6 {
    display: none;
  }
}

/* Validaciones */
.is-invalid {
  border-color: #dc3545 !important;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
  border-color: #198754 !important;
}

.was-validated .form-control:valid:focus,
.was-validated .form-select:valid:focus {
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Estilo para el selectpicker inválido */
.was-validated .bootstrap-select:invalid .dropdown-toggle {
  border-color: #dc3545 !important;
}

.was-validated .bootstrap-select:valid .dropdown-toggle {
  border-color: #198754 !important;
}

select[multiple] {
  height: 170px;
}

/* Estilo para el contenedor de otros productos */
#otrosProductosContainer {
  transition: all 0.3s ease;
  border-top: 1px solid #dee2e6;
  padding-top: 15px;
}

/* Efecto visual cuando aparece */
#otrosProductosContainer:not(.d-none) {
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
