/* =========================================
   VARIABLES GLOBALES
========================================= */
:root {
  --primary: #0B3D91;      /* Azul corporativo */
  --secondary: #3CB371;    /* Verde profesional */
  --light: #f1f5f9;
  --dark: #1f2937;
  --muted: #64748b;
}

/* =========================================
   NAVBAR
========================================= */
.navbar-brand img {
  border-radius: 0%;
}

.nav-link {
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
  background: linear-gradient(to bottom right, var(--primary), #072a61);
}

/* =========================================
   CARDS & BENEFITS
========================================= */
.benefit-card {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  height: 100%;
}

.area-card {
  border: 1px solid #e2e8f0;
  padding: 1rem;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* =========================================
   JOBS CAROUSEL
========================================= */
.jobs-carousel {
  scroll-behavior: smooth;
}

.jobs-carousel .job-card {
  width: 250px;
  min-width: 250px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.job-img {
  background-color: var(--light);
  text-align: center;
  padding: 1.5rem;
  border-radius: 0.5rem;
  font-style: italic;
  color: var(--muted);
}

.carousel-wrapper {
  position: relative;
}

.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 1.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.left-btn { left: 3px; }
.right-btn { right: 3px; }

/* =========================================
   BOTONES
========================================= */
.btn-back {
  display: inline-block;
  background: var(--light);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.btn-secondary {
  background-color: var(--secondary) !important;
  border: none;
  color: #fff !important;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
  background-color: #04612c !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* =========================================
   FORMULARIOS (GENÉRICO)
========================================= */
.post-form {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.post-form .form-label {
  font-weight: 600;
  color: var(--primary);
}

.post-form button {
  background-color: var(--primary);
  border: none;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.post-form button:hover {
  background-color: #092d6f;
}

/* Campos inválidos */
.is-invalid {
  border: 1px solid #dc3545 !important;
  background-color: #fff5f5;
}

/* =========================================
   FORMULARIO DE PRESELECCIÓN (Construcción)
========================================= */
#preseleccion-construccion {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

#preseleccion-construccion h2 {
  color: var(--dark);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

#preseleccion-construccion h4 {
  border-left: 5px solid var(--primary);
  padding-left: 10px;
  margin: 2rem 0 1rem;
  font-weight: 600;
  color: var(--primary);
}

#preseleccion-construccion label {
  font-weight: 600;
  margin-bottom: 4px;
  color: #374151;
}

#preseleccion-construccion input,
#preseleccion-construccion select,
#preseleccion-construccion textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 4px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #fafafa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Foco */
#preseleccion-construccion input:focus,
#preseleccion-construccion select:focus,
#preseleccion-construccion textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.2);
  outline: none;
}

/* Botón */
#preseleccion-construccion button[type="submit"] {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 16px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 10px;
  margin-top: 1rem;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

#preseleccion-construccion button[type="submit"]:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

#preseleccion-construccion button[type="submit"]:active {
  transform: translateY(1px);
}

/* Responsivo */
@media (max-width: 768px) {
  #preseleccion-construccion {
    padding: 1rem;
  }
}

/* =========================================
   FOOTER
========================================= */
.footer {
  background-color: var(--primary);
  color: var(--light);
}

.footer h6 {
  font-size: 0.95rem;
  color: #fff;
}

.footer p {
  color: #aaa;
}

.footer .company-logo {
  max-height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer .company-logo:hover {
  opacity: 1;
}

/* =========================================
   SECCIÓN DE EMPRESAS (Trusted Companies)
========================================= */
#trusted-companies {
  padding: 2rem 1rem;
  background-color: #fff;
  text-align: center;
}

#trusted-companies h2 {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#trusted-companies p {
  font-size: clamp(0.9rem, 3vw, 1rem);
  color: #475569;
  margin-bottom: 1.5rem;
}

#logo-slider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: slide 25s linear infinite;
}

.logo {
  height: 45px;
  max-width: 100px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  filter: grayscale(100%) brightness(0.7);
}

.logo:hover {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(1);
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  #logo-slider {
    gap: 0.6rem;
    animation-duration: 15s;
  }
  .logo {
    height: 32px;
    max-width: 80px;
  }
}
