/* ===== ESTILOS BOLSA DE EMPLEO - Reutilizando estilos GESMA ===== */

:root {
  --color-primario: #5E2A84;
  --color-secundario: #F5A700;
  --color-fondo: #F9F9F9;
  --color-texto: #333333;
  --color-blanco: #FFFFFF;
  --color-input-border: #CCCCCC;
  --color-error: #E53E3E;
  --color-success: #2ecc40;
  --color-warning: #f39c12;
  --color-info: #3498db;
  --border-radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
}

/* ===== MODERN BODY ===== */
.modern-body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #f6f7f8;
  color: #111418;
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== MODERN HEADER ===== */
.modern-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: white;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #111418;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.mobile-menu-toggle:hover {
  background: #f3f4f6;
}

.mobile-menu-toggle .material-symbols-outlined {
  font-size: 24px;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-primario);
}

.logo-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111418;
  margin: 0;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .logo-text {
    font-size: 1.25rem;
  }
}

.header-nav {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

/* Mobile menu */
@media (max-width: 767px) {
  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }
  
  .header-nav.mobile-open {
    max-height: 400px;
    display: flex;
  }
  
  .header-nav .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    width: 100%;
    text-align: left;
  }
  
  .header-nav .nav-link:hover {
    background: #f3f4f6;
  }
}

.nav-link {
  color: #111418;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--color-primario);
}

.nav-link.active {
  color: var(--color-primario);
  border-bottom-color: var(--color-primario);
}

.header-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
}


/* ===== MODERN MAIN ===== */
.modern-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: calc(100vh - 200px);
}

/* ===== CONTAINER (legacy) ===== */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.card-header {
  border-bottom: 2px solid var(--color-fondo);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  color: var(--color-primario);
  margin: 0;
}

/* ===== MODERN BUTTONS ===== */
.modern-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
  min-height: 40px;
}

.modern-btn-primary {
  background: var(--color-primario);
  color: white;
}

.modern-btn-primary:hover {
  background: #4a1f6b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(94, 42, 132, 0.3);
}

.modern-btn-secondary {
  background: rgba(94, 42, 132, 0.1);
  color: var(--color-primario);
}

.modern-btn-secondary:hover {
  background: rgba(94, 42, 132, 0.2);
}

.modern-btn-outline {
  background: transparent;
  color: var(--color-primario);
  border: 1px solid var(--color-primario);
}

.modern-btn-outline:hover {
  background: var(--color-primario);
  color: white;
}

/* ===== BUTTONS (legacy) ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background: var(--color-primario);
  color: white;
}

.btn-primary:hover {
  background: #4a1f6b;
}

.btn-secondary {
  background: var(--color-secundario);
  color: white;
}

.btn-secondary:hover {
  background: #d49400;
}

.btn-success {
  background: var(--color-success);
  color: white;
}

.btn-danger {
  background: var(--color-error);
  color: white;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-texto);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-input-border);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primario);
  box-shadow: 0 0 0 3px rgba(94, 42, 132, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
}

/* ===== ALERTS ===== */
.alert {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.alert-info {
  background: #e3f2fd;
  color: #1976d2;
  border-left: 4px solid var(--color-info);
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid var(--color-success);
}

.alert-error {
  background: #ffebee;
  color: #c62828;
  border-left: 4px solid var(--color-error);
}

.alert-warning {
  background: #fff3e0;
  color: #e65100;
  border-left: 4px solid var(--color-warning);
}

/* ===== TABLES ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-fondo);
}

.table th {
  background: var(--color-fondo);
  font-weight: 600;
  color: var(--color-primario);
}

.table tr:hover {
  background: #f5f5f5;
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-warning {
  background: #fff3e0;
  color: #e65100;
}

.badge-danger {
  background: #ffebee;
  color: #c62828;
}

.badge-info {
  background: #e3f2fd;
  color: #1976d2;
}

/* ===== MODERN OFERTAS GRID ===== */
.modern-ofertas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .modern-ofertas-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
  }
}

.modern-oferta-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s;
}

.modern-oferta-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: var(--color-primario);
  transform: translateY(-2px);
}

.modern-oferta-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.modern-oferta-logo {
  width: 64px;
  height: 64px;
  border-radius: 0.5rem;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--color-primario);
}

.modern-oferta-info {
  flex: 1;
}

.modern-oferta-titulo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111418;
  margin-bottom: 0.25rem;
}

.modern-oferta-empresa {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.modern-oferta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.modern-oferta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
  background: #f3f4f6;
  border-radius: 9999px;
}

.modern-oferta-tag-icon {
  font-size: 14px;
}

.modern-oferta-descripcion {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.modern-oferta-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

/* ===== OFERTAS GRID (legacy) ===== */
.ofertas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.oferta-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.oferta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.oferta-titulo {
  font-size: 1.25rem;
  color: var(--color-primario);
  margin-bottom: 0.5rem;
}

.oferta-empresa {
  color: var(--color-secundario);
  font-weight: 500;
  margin-bottom: 1rem;
}

.oferta-descripcion {
  color: #666;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oferta-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

/* ===== MODERN FOOTER ===== */
.modern-footer {
  margin-top: 4rem;
}

.footer-agency-badge {
  background: #f0f4f8;
  border-top: 1px solid #dbe0e6;
  padding: 1.5rem 0;
}

.footer-agency-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-agency-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primario);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.footer-agency-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.footer-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  max-width: 200px;
  display: block;
}

.footer-logo-text {
  font-size: 0.75rem;
  color: #374151;
  font-weight: 500;
  white-space: nowrap;
  line-height: 1.2;
}

.footer-agency-code {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
  white-space: nowrap;
}

.footer-copyright {
  background: #111418;
  color: white;
  padding: 1.5rem 1rem;
  text-align: center;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.875rem;
  color: #a0aec0;
}

@media (max-width: 1024px) {
  .footer-agency-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-agency-logos {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-logo-item {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .footer-agency-text {
    font-size: 0.75rem;
  }
  
  .footer-logo-text {
    font-size: 0.7rem;
  }
  
  .footer-agency-code {
    font-size: 0.7rem;
  }
}

/* ===== FOOTER (legacy) ===== */
.footer {
  background: var(--color-texto);
  color: white;
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.d-flex {
  display: flex;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ===== MODERN HERO SECTION ===== */
.modern-hero-section {
  max-width: 1280px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #111418;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

.hero-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* ===== MODERN SEARCH ===== */
.modern-search-form {
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 56px;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: #6b7280;
  font-size: 20px;
}

.modern-search-input {
  flex: 1;
  height: 100%;
  padding: 0 1rem 0 3rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: #111418;
  outline: none;
}

.modern-search-input::placeholder {
  color: #9ca3af;
}

.search-input-wrapper:focus-within {
  border-color: var(--color-primario);
  box-shadow: 0 0 0 3px rgba(94, 42, 132, 0.1);
}

/* ===== MODERN LAYOUT GRID ===== */
.modern-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .modern-layout-grid {
    grid-template-columns: 280px 1fr;
  }
}

/* ===== MODERN FILTERS ===== */
.modern-filters-sidebar {
  position: relative;
}

.filters-card {
  position: sticky;
  top: 100px;
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filters-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111418;
  margin: 0;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-size: 1rem;
  font-weight: 500;
  color: #111418;
}

.filter-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-icon {
  position: absolute;
  left: 0.75rem;
  color: #6b7280;
  font-size: 20px;
}

.modern-filter-input {
  width: 100%;
  height: 48px;
  padding: 0 0.75rem 0 2.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #111418;
  background: white;
  outline: none;
  transition: all 0.2s;
}

.modern-filter-input:focus {
  border-color: var(--color-primario);
  box-shadow: 0 0 0 3px rgba(94, 42, 132, 0.1);
}

.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
}

.filter-checkbox-label input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--color-primario);
}

/* ===== MODERN OFERTAS CONTAINER ===== */
.modern-ofertas-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results-count {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}

.results-number {
  font-weight: 700;
  color: #111418;
}

/* ===== EMPTY STATE ===== */
.modern-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
}

.empty-icon {
  font-size: 64px;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.modern-empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111418;
  margin-bottom: 0.5rem;
}

.modern-empty-state p {
  color: #6b7280;
  font-size: 0.875rem;
}

/* ===== RESPONSIVE MOBILE IMPROVEMENTS ===== */

/* Mobile: General improvements */
@media (max-width: 767px) {
  .modern-main {
    padding: 1rem 0.75rem;
  }
  
  .modern-hero-section {
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .modern-layout-grid {
    padding: 0 0.75rem;
    gap: 1.5rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .card {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .card-title {
    font-size: 1.125rem;
  }
  
  /* Buttons */
  .btn, .modern-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  /* Search input */
  .search-input-wrapper {
    height: 48px;
  }
  
  .modern-search-input {
    font-size: 0.875rem;
    padding: 0 0.75rem 0 2.75rem;
  }
  
  /* Filters sidebar */
  .filters-card {
    position: relative;
    top: 0;
    margin-bottom: 1.5rem;
  }
  
  .filters-title {
    font-size: 1rem;
  }
  
  /* Results header */
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  /* Empty state */
  .modern-empty-state {
    padding: 2rem 1rem;
  }
  
  .empty-icon {
    font-size: 48px;
  }
  
  .modern-empty-state h3 {
    font-size: 1.125rem;
  }
}

/* Mobile: Oferta cards */
@media (max-width: 767px) {
  .modern-oferta-card {
    padding: 1rem;
  }
  
  .oferta-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .oferta-card-logo {
    width: 48px;
    height: 48px;
  }
  
  .oferta-titulo {
    font-size: 1rem;
  }
  
  .oferta-empresa {
    font-size: 0.8125rem;
  }
  
  .oferta-meta {
    flex-wrap: wrap;
    gap: 0.375rem;
  }
  
  .oferta-meta span {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
  }
  
  .oferta-descripcion {
    font-size: 0.8125rem;
    -webkit-line-clamp: 3;
  }
  
  .oferta-card .btn {
    width: 100%;
    margin-top: 0.75rem;
  }
}

/* Mobile: Login/Register pages */
@media (max-width: 767px) {
  .login-page, .register-page {
    flex-direction: column;
  }
  
  .login-left, .register-left {
    display: none;
  }
  
  .login-right, .register-right {
    width: 100%;
    padding: 1.5rem 1rem;
  }
  
  .auth-form-container {
    max-width: 100%;
    padding: 1.5rem;
  }
  
  .auth-form-header h1 {
    font-size: 1.75rem;
  }
  
  .auth-form-group {
    margin-bottom: 1rem;
  }
  
  .auth-form-input-wrapper .form-control {
    height: 48px;
    font-size: 0.875rem;
  }
  
  .auth-submit-button {
    height: 48px;
    font-size: 0.875rem;
  }
}

/* Mobile: Dashboard demandante */
@media (max-width: 767px) {
  .card-header {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .card-header h1 {
    font-size: 1.25rem;
  }
  
  .alert {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
  
  .alert h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  /* Tables */
  .table {
    font-size: 0.8125rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table th,
  .table td {
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
  }
  
  .table th {
    font-size: 0.75rem;
  }
  
  /* Badges */
  .badge {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
  }
  
  /* Form groups in cards */
  .card > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* Mobile: Job detail page */
@media (max-width: 767px) {
  .job-detail-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .job-detail-main {
    grid-column: 1;
  }
  
  .job-detail-sidebar {
    grid-column: 1;
  }
  
  .job-detail-header h1 {
    font-size: 1.5rem;
  }
  
  .job-detail-header p {
    font-size: 0.875rem;
  }
  
  .job-detail-chips {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  
  .job-detail-chip {
    height: 1.75rem;
    padding: 0 0.75rem;
    font-size: 0.75rem;
  }
  
  .job-detail-tabs {
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .job-detail-tab-item {
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  
  .job-detail-content {
    font-size: 0.875rem;
  }
  
  .job-detail-content h2 {
    font-size: 1.125rem;
  }
  
  .job-detail-content h3 {
    font-size: 1rem;
  }
  
  .job-detail-actions .btn-primary {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .job-detail-company-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .job-detail-company-logo {
    width: 48px;
    height: 48px;
  }
}

/* Mobile: Forms */
@media (max-width: 767px) {
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
  }
  
  .form-control {
    font-size: 0.875rem;
    padding: 0.625rem 0.75rem;
    height: 44px;
  }
  
  textarea.form-control {
    min-height: 100px;
  }
  
  select.form-control {
    padding-right: 2rem;
  }
}

/* Mobile: Footer */
@media (max-width: 767px) {
  .modern-footer {
    padding: 1.5rem 1rem;
  }
  
  .footer-agency-badge {
    padding: 1rem;
  }
  
  .footer-agency-content {
    gap: 0.75rem;
  }
  
  .footer-agency-text {
    font-size: 0.6875rem;
  }
  
  .footer-logo-img {
    height: 1.5rem;
  }
  
  .footer-logo-text {
    font-size: 0.625rem;
  }
  
  .footer-agency-code {
    font-size: 0.625rem;
  }
  
  .footer-copyright {
    padding: 1rem;
  }
  
  .footer-copyright p {
    font-size: 0.75rem;
  }
}

/* Mobile: Admin panel */
@media (max-width: 767px) {
  .admin-header-content {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .admin-header .nav {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  .admin-container {
    padding: 1rem 0.75rem;
  }
  
  .admin-card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .admin-table-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .admin-table-search {
    max-width: 100%;
  }
  
  .admin-table-filters {
    flex-direction: column;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .modern-layout-grid {
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .modern-oferta-card {
    padding: 1.25rem;
  }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
  .btn, .modern-btn, .nav-link {
    min-height: 44px;
    min-width: 44px;
  }
  
  .filter-checkbox-label {
    min-height: 44px;
    padding: 0.5rem 0;
  }
  
  input[type="checkbox"],
  input[type="radio"] {
    width: 20px;
    height: 20px;
  }
}

