:root {
  --verde-primario: #6ac82a;
  --verde-oscuro: #4a9e1c;
  --gris-oscuro: #1c1c1c;
  --gris-claro: #f8f9fa;
}
header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important; /* Sombra visible */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: white !important; /* Fuerza el fondo blanco */
}

.navbar-solid {
  background-color: white !important;
  transition: none !important; /* Elimina cualquier transición */
}
/* Logo y marca */
.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand .logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  margin-left: 10px;
  color: #ffffff;
}

.logo-img {
  height: 100%;
  width: 4px;
  max-height: 100px;
  transition: all 0.3s ease;
}

/* Menú desplegable móvil - Fondo sólido */
.navbar-collapse {
  background-color: #ffffff !important; /* Fondo blanco para el menú móvil */
  padding: 15px;
  margin-top: 10px; /* Separación del borde superior */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0);
}

/* Enlaces de navegación */
.nav-link {
  font-weight: 100;
  margin: 10px;
  position: relative;
  color: #000000 !important;
  padding: 8px 0 !important;
  font-family: "Urbanist", sans-serif;
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color, #6ac82a);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color, #6ac82a) !important;
}

/* Efecto hero */
.hero-section h1 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgb(255, 255, 255);
  margin-bottom: 1rem;
}

/* Media Queries para responsive */
@media (max-width: 992px) {
  .logo-img {
    width: 80px;
    max-height: 80px;
  }

  .navbar-brand .logo-text {
    font-size: 1.2rem;
  }

  .nav-link {
    margin: 5px 0;
    padding: 5px 0 !important;
    color: #333 !important; /* Color oscuro para mejor legibilidad en móvil */
  }

  /* Asegurar que el menú móvil tenga buen contraste */
  .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
}
.navbar {
  min-height: 60px !important;
  background-color: rgb(255, 255, 255) !important;
}

.logo-img {
  width: 100px !important;
}

.nav-link {
  padding: 0.3rem 0.6rem !important;
  font-size: 0.9rem !important;
}

@media (max-width: 992px) {
  .navbar {
    min-height: 45px !important;
  }

  .logo-img {
    width: 100px !important;
  }
}

/*botones es y en */

.language-dropdown {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #ced4da;
  color: #000;
}

.language-dropdown::after {
  margin-left: 5px;
}

.dropdown-item {
  display: flex;
  align-items: center;
}

.flag-icon {
  width: 20px;
  margin-right: 8px;
}
body {
  font-family: "Urbanist", sans-serif;
  background-color: #ffffff;
  color: #931919;
}
/* Asegura que el body no tenga margen superior */
body {
  padding-top: 0;
  margin-top: 0;
}

/* En tu archivo CSS principal o dentro de <style> */
.form-label {
  font-family: "Urbanist", sans-serif;
  font-weight: 400; /* Puedes ajustar el grosor */
}

.container .row {
  font-family: "Urbanist", sans-serif !important;
}

h1 {
  font-weight: 600;
  font-family: "Urbanist", sans-serif !important;
  color: #198754;
}
h2.text-center {
  font-family: "Urbanist", sans-serif !important;
  color: #198754;
}

.hero-comprador {
  background: #f5faf2;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  font-family: "Urbanist", sans-serif;
}

.hero-comprador h1 {
  font-weight: 700;
  color: #198754;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-comprador .lead {
  font-size: 1.25rem;
  color: #555555c5;
  margin-bottom: 2rem;
}

/* Formulario rediseñado similar al de productor */
.form-card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.196);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.form-card .card-header {
  background: linear-gradient(135deg, #2e7d32, #4caf50) !important;
  color: white;
  border-radius: 12px 12px 0 0 !important;
  padding: 1rem;
  border-bottom: none;
}

.form-card .card-header h3 {
  font-weight: 400;
  margin-bottom: 0;
  color: white;
}

.form-card .card-body {
  padding: 1.5rem;
}

/* Inputs más delgados y modernos */
.form-control,
.form-select {
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  border: 1px solid #e0e0e0;
  font-size: 0.9rem;
  height: auto;
  font-weight: 300;
  font-family: "Urbanist", sans-serif;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--verde-primario);
  box-shadow: 0 0 0 0.2rem rgba(106, 200, 42, 0.15);
}

.form-label {
  font-weight: 400;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--gris-oscuro);
}

.btn-primary {
  background: linear-gradient(135deg, #2e7d32, #4caf50) !important;
  border-color: var(--verde-primario);
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
}

.btn-primary:hover {
  background-color: var(--verde-oscuro);
  border-color: var(--verde-oscuro);
  transform: translateY(-2px);
}

.benefits-buyers {
  background-color: var(--gris-claro);
}

.benefits-buyers h2 {
  font-weight: 700;
  font-family: urbanist, sans-serif;
  position: relative;
  padding-bottom: 1rem;
}

.benefits-buyers h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--verde-primario);
}

.benefit-item {
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  background-color: rgba(122, 201, 69, 0.355);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-wrapper i {
  font-size: 1.75rem;
  color: var(--verde-primario);
}

.benefit-item h4 {
  font-weight: 600;
  margin: 1rem 0;
  color: var(--gris-oscuro);
}

.decoracion-aguacate {
  position: absolute;
  right: -50px;
  top: 20%;
  transform: translateY(30%);
  z-index: 0;
  opacity: 0.2;
}

.decoracion-aguacate img {
  width: 400px;
  animation: flotar 6s ease-in-out infinite;
}

@keyframes flotar {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Validaciones */
.is-invalid {
  border-color: #dc3545 !important;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.8rem;
  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);
}

/* Checkbox personalizado */
.form-check-input:checked {
  background-color: var(--verde-primario);
  border-color: var(--verde-primario);
}

/* Sección de cultivos */
.cultivos-container {
  background-color: #f9f9f9 !important;
  border: 1px solid #eee;
}

/* Footer styles */
.footer-logo {
  max-height: 5000px;
  width: auto;
}

.hover-green:hover {
  color: var(--verde-primario) !important;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--verde-primario);
  transform: translateY(-3px);
}

@media (max-width: 992px) {
  .hero-comprador {
    padding: 5rem 0;
  }

  .decoracion-aguacate {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-comprador h1 {
    font-size: 2rem;
  }

  body {
    font-weight: 300;
  }

  .form-control,
  .form-select {
    font-weight: 300;
  }

  /* Orden correcto para móviles: formulario primero */
  .order-md-1 {
    order: 2;
  }
  .order-md-2 {
    order: 1;
    margin-bottom: 2rem;
  }
}

/* Decoraciones */
.decoracion {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.circulo {
  position: absolute;
  opacity: 0.5;
}

.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: -20%;
  right: 15%;
  animation: float 5s ease-in-out infinite;
  animation-delay: 0.5s;
}

.circulo4 {
  width: 120px;
  bottom: 90%;
  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: 120px;
  right: 5%;
  top: 15%;
  z-index: 0;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  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;
  }
}
