:root {
  /* --- COLORES DEL DASHBOARD --- */
  --primary-color: #0f3460;
  --primary-hover: #092444;
  --primary-gradient: linear-gradient(72.47deg, #0f3460 22.16%, rgba(15, 52, 96, 0.7) 76.47%);

  --bg-body: #f4f5f7; /* Fondo general del dashboard */
  --bg-card: #ffffff; /* Fondo de tarjetas */
  --bg-label: #e9ecef; /* Fondo para etiquetas/badges */

  --text-main: #33343d; /* Color de texto principal */
  --text-muted: #6f6b7d; /* Color de texto secundario */
  --text-light: #a5a3ae;

  --border-color: #dbe1e6;

  /* --- SOMBRAS Y BORDES --- */
  --shadow-card: 0 0.25rem 1rem rgba(165, 163, 174, 0.45);
  --shadow-hover: 0 5px 15px rgba(15, 52, 96, 0.15);

  --radius-sm: 0.375rem; /* 6px - Estándar del dashboard */
  --radius-md: 0.5rem; /* 8px */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Public Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.53;
  font-size: 0.9375rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* --- NAVBAR (Estilo Dashboard Fixed) --- */
.landing-navbar {
  background-color: var(--bg-card);
  box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  min-height: 65vh;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background-color: var(--bg-label);
  color: var(--primary-color);
  font-weight: 600;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.6;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(15, 52, 96, 0.1));
}

/* --- SECCIONES COMUNES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- ABOUT SECTION (Estilo Card) --- */
.about-section {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 3rem;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.about-text p {
  color: var(--text-muted);
}

/* --- OFERTAS GRID --- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

/* --- JOB CARD (Estilo Widget Dashboard) --- */
.job-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-sm); /* 6px */
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.job-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-color);
  background-color: var(--bg-label);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
}

.job-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.job-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.job-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid #eceef1;
  border-bottom: 1px solid #eceef1;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 500;
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --- BOTONES --- */
.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 0.65rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  color: #fff;
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0.125rem 0.25rem 0 rgba(15, 52, 96, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  color: #fff;
}

/* Nuevo: Estilo para botón deshabilitado */
.btn-primary:disabled {
  background-color: #a0a0a0;
  border-color: #a0a0a0;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

/* --- MODAL (Estilo Dashboard Modal) --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 32, 40, 0.4); /* Backdrop más oscuro */
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--bg-card);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.close-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.close-button:hover {
  color: var(--primary-color);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

/* --- FORMULARIOS --- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-main);
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* El foco azul del dashboard */
.form-control:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(15, 52, 96, 0.15);
}

.form-actions {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background-color: rgba(244, 245, 247, 0.5);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.btn-secondary {
  padding: 0.65rem 1.25rem;
  background-color: #fff;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #f8f9fa;
  color: var(--text-main);
}

.text-danger {
  color: #ea5455;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 1rem;
  }

  .hero-image {
    justify-content: center;
  }

  .about-section {
    flex-direction: column;
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* --- TOAST NOTIFICATIONS (Alertas Amigables) --- */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none; /* Permite hacer clic debajo si no hay toast */
}

.toast {
  background-color: var(--bg-card);
  color: var(--text-main);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 300px;
  max-width: 400px;
  border-left: 4px solid var(--primary-color);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(20px);
  animation: toastSlideIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.toast.success {
  border-left-color: #28c76f; /* Verde éxito dashboard */
}

.toast.success .toast-icon {
  color: #28c76f;
  background-color: rgba(40, 199, 111, 0.12);
}

.toast.error {
  border-left-color: #ea5455; /* Rojo error dashboard */
}

.toast.error .toast-icon {
  color: #ea5455;
  background-color: rgba(234, 84, 85, 0.12);
}

.toast.info {
  border-left-color: #00cfe8; /* Azul info */
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 14px;
}

.toast-message {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

@keyframes toastSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastFadeOut {
  to {
    opacity: 0;
    transform: translateX(10px);
  }
}
