/* portal/style.css - Bonahora Portal de Empleo */
:root {
  --primary: #DD6E4D;       /* Coral más mate y menos brillante */
  --primary-light: #EAA085; /* Durazno apagado */
  --primary-hover: #C65A3D;
  --secondary: #EAC9A7;     /* Amarillo/Naranja pálido mate */
  --accent: #78B894;        /* Verde salvia mate */
  --bg-color: #F5F2ED;      /* Fondo más opaco, gris cálido suave */
  --bg-card: rgba(255, 255, 255, 0.92); /* Tarjetas mucho más opacas, menos cristalinas */
  --text-main: #334155;     /* Pizarra oscuro (Slate) */
  --text-muted: #64748B;
  --border: rgba(200, 200, 200, 0.3); /* Borde menos brillante */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03); /* Sombras grises mate en lugar de naranjas */
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.3s;
}

a:hover {
  color: var(--primary-hover);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white !important;
}

/* Botones del Navbar (Empresa) */
.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-custom-color {
  color: var(--btn-color) !important;
  border-color: var(--btn-color) !important;
}

.btn-custom-color:hover {
  background-color: color-mix(in srgb, var(--btn-color) 12%, transparent) !important;
  color: var(--btn-color) !important;
  border-color: var(--btn-color) !important;
}

/* Botón Destacado Bonahora Consultora */
.btn-consultora-main {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.1rem;
  background: #ffffff;
  border: 1.5px solid var(--primary);
  border-radius: 50px;
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(221, 110, 77, 0.12);
  position: relative;
}

.btn-consultora-main img {
  height: 22px;
  width: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.btn-consultora-main:hover {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff !important;
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(221, 110, 77, 0.35);
}

.btn-consultora-main:hover img {
  filter: brightness(0) invert(1);
  transform: scale(1.08);
}

.btn-consultora-main i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.btn-consultora-main:hover i {
  transform: translate(2px, -2px);
}

/* Barra Superior Institucional Bonahora Consultora */
.consultora-topbar {
  background: linear-gradient(90deg, #dd6e4d 0%, #c65a3d 100%);
  color: #ffffff;
  padding: 0.45rem 1rem;
  font-size: 0.86rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 101;
}

.consultora-topbar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.consultora-topbar-link {
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: underline;
  background: rgba(255, 255, 255, 0.18);
  padding: 0.15rem 0.75rem;
  border-radius: 20px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.consultora-topbar-link:hover {
  background: #ffffff;
  color: var(--primary-hover) !important;
  text-decoration: none;
  transform: scale(1.03);
}

/* Hero Buscador */
.hero-search {
  background: linear-gradient(135deg, #fdfbf7 0%, #fae5d3 100%);
  padding: 1.5rem 5%;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-search h1 {
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.hero-search p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.search-box {
  display: flex;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 60px;
  padding: 0.45rem 0.5rem 0.45rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.03);
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 0.5rem;
}

.search-box:focus-within {
  box-shadow: 0 12px 35px rgba(221, 110, 77, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: rgba(221, 110, 77, 0.45);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.6rem;
  flex: 1;
  min-width: 0;
}

.search-field:first-child {
  flex: 1.4;
}

.search-icon {
  color: var(--primary);
  font-size: 1.15rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.search-divider {
  width: 1px;
  height: 32px;
  background-color: #cbd5e1;
  flex-shrink: 0;
  opacity: 0.6;
}

/* Resetear overrides agresivos de inputs/selects dentro de .search-box */
.search-box input.search-input,
.search-box select.search-select,
.search-box .search-field input,
.search-box .search-field select {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background-color: transparent !important;
  padding: 0.5rem 0 !important;
  font-size: 0.98rem !important;
  font-family: var(--font-main), 'Inter', sans-serif !important;
  color: var(--text-main) !important;
  width: 100% !important;
  height: auto !important;
}

.search-box select.search-select,
.search-box .search-field select {
  background-position: right 0.2rem center !important;
  background-size: 1.1rem !important;
  padding-right: 1.8rem !important;
  cursor: pointer !important;
}

.search-box input.search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.search-btn {
  padding: 0.85rem 1.8rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(221, 110, 77, 0.3);
  flex-shrink: 0;
}

.search-btn:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #b84c30 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(221, 110, 77, 0.4);
}

/* Main Container */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 3rem 3%;
}

/* Marketing Sections */
.marketing-section {
  padding: 4rem 5%;
  background: white;
}

.marketing-section.alt-bg {
  background: #fdfbf7;
}

.section-title {
  text-align: center;
  color: var(--primary-dark);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  border: 1px solid #f0f0f0;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--text-main);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  text-align: center;
  padding: 4rem 5%;
  border-radius: 16px;
  margin: 4rem auto;
  max-width: 1100px;
  box-shadow: 0 10px 30px rgba(240, 106, 37, 0.3);
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  background: white;
  color: var(--primary);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s;
  display: inline-block;
}

.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255,255,255,0.4);
}

/* Categorias */
.categories {
  margin-bottom: 3rem;
}

.categories h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.cat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cat-card:hover, .cat-card.active {
  border-color: var(--primary);
  background: #fdf2e9;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cat-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.cat-card span {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Filtros */
.filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-pill {
  background: white;
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover {
  border-color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Grid de Ofertas */
/* Grid de Ofertas */
.jobs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  .jobs-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .jobs-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .jobs-layout {
    grid-template-columns: repeat(4, 1fr); /* 4 columns on large desktops */
  }
}

.job-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.2rem 1.25rem 1.25rem; /* Extra top padding for diagonal banner */
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  overflow: hidden;
  min-height: 380px; /* Symmetrical squared layout height */
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

/* Cinta de Destacada en diagonal (esquina superior izquierda) */
.job-card.destacada {
  border-color: rgba(221, 110, 77, 0.4);
  box-shadow: 0 4px 20px rgba(221, 110, 77, 0.08);
}

.job-card.destacada::before {
  content: "★ Destacada";
  position: absolute;
  top: 16px;
  left: -35px;
  width: 125px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 4px 0;
  font-size: 0.58rem;
  font-weight: 700;
  transform: rotate(-45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 10;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Estilo para Normales */
.job-card.normal {
  border-color: var(--border);
}

/* Cabecera de Tarjeta Vertical */
.job-card-header-vertical {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-align: left;
}

.job-company-logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(221, 110, 77, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid rgba(221, 110, 77, 0.15);
  flex-shrink: 0;
}

.job-company-logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  padding: 3px;
  background: white;
}

.job-title-company-vertical {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.job-title-new {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  transition: color 0.2s ease;
}

.job-card:hover .job-title-new {
  color: var(--primary-hover);
}

.job-company-new {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.job-description-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

/* Badges alineados horizontalmente y envolventes */
.job-badges-vertical {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto; /* Empuja las etiquetas al pie del área de contenido */
  align-items: flex-start;
  width: 100%;
}

.badge-new-style {
  padding: 0.3rem 0.65rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: capitalize;
  white-space: nowrap;
}

/* Colors using corporate system */
.badge-modality {
  background: rgba(120, 184, 148, 0.12); /* Sage green --accent */
  color: #4b8c66;
}

.badge-jornada {
  background: rgba(234, 201, 167, 0.2); /* Pale orange --secondary */
  color: #b07e4d;
}

.badge-renta {
  background: rgba(221, 110, 77, 0.08); /* Coral --primary */
  color: var(--primary);
}

.btn-ver-detalle-card {
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  width: 100%;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
  margin-top: 0.5rem;
}

.job-card:hover .btn-ver-detalle-card {
  transform: translateY(-2px);
  background-color: var(--primary-hover);
}

/* Keep old badge classes for backwards compatibility/other views */
.job-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-new { background: rgba(255, 123, 84, 0.15); color: var(--primary); }
.badge-location { background: rgba(51, 65, 85, 0.08); color: var(--text-main); }
.badge-type { background: rgba(111, 207, 151, 0.15); color: #2E8A57; }
.badge-salary { background: rgba(100, 116, 139, 0.1); color: var(--text-muted); }

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.job-time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Forms comunes (Registro, Login, Publicar) */
.auth-container {
  max-width: 450px;
  margin: 4rem auto;
  background: white;
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-hover);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.form-control, input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], input[type="date"], input[type="url"], textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: var(--font-main), 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #ffffff;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.form-control:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(221, 110, 77, 0.18);
  background-color: #ffffff;
}

/* Identidad Corporativa Unificada para Menús Desplegables (select) */
select, select.form-control, .form-control select, .search-select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23DD6E4D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 1.1rem !important;
  padding: 0.75rem 2.8rem 0.75rem 1rem !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  color: var(--text-main) !important;
  font-family: var(--font-main), 'Inter', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
}

select:hover, select.form-control:hover {
  border-color: var(--primary-light) !important;
  box-shadow: 0 2px 6px rgba(221, 110, 77, 0.08) !important;
}

select:focus, select.form-control:focus, .search-select:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3.5px rgba(221, 110, 77, 0.18) !important;
  background-color: #ffffff !important;
}

select:disabled, select[disabled] {
  background-color: #f1f5f9 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  opacity: 0.75 !important;
  border-color: #e2e8f0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

select option {
  background-color: #ffffff !important;
  color: var(--text-main) !important;
  padding: 0.6rem 1rem !important;
  font-weight: 500 !important;
}

/* Postulación espontánea */
.spontaneous {
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  margin-top: 4rem;
  box-shadow: var(--shadow-lg);
}

.spontaneous h2 {
  margin-bottom: 1rem;
}

.spontaneous p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  border-radius: var(--radius);
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* Utils */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* Dashboard Empresa */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.table-container {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  background: #fdfbf7;
  font-weight: 600;
  color: var(--text-muted);
}

tr:hover {
  background: #fdfbf7;
}

/* Responsivo */
@media (max-width: 768px) {
  .search-box {
    flex-direction: column;
    border-radius: 20px;
    padding: 1rem;
    gap: 0.75rem;
  }
  .search-divider {
    display: none;
  }
  .search-field {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
  }
  .search-btn {
    width: 100%;
    border-radius: 12px;
    padding: 0.9rem;
    justify-content: center;
  }
  .hero-search h1 { font-size: 2rem; }
}

/* Estilo Institucional Bonahora para Tours (Intro.js) */
.introjs-overlay {
  background-color: rgba(44, 62, 80, 0.5) !important; /* Soft dark slate overlay */
  backdrop-filter: blur(4px); /* Modern blur effect */
}

.introjs-helperLayer {
  box-shadow: rgba(44, 62, 80, 0.4) 0px 0px 1px 2px, rgba(44, 62, 80, 0.5) 0px 0px 0px 5000px !important;
  border: 2px solid var(--primary) !important;
  border-radius: var(--radius) !important;
}

.introjs-tooltip {
  font-family: var(--font-main);
  border-radius: 16px !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
  padding: 1.8rem !important;
  border: 1px solid var(--border) !important;
  min-width: 320px !important; /* Proportional, elegant layout */
  max-width: 420px !important;
}

.introjs-tooltiptitle {
  font-weight: 700 !important;
  color: var(--text-main) !important;
  font-size: 1.25rem !important;
  line-height: 1.3 !important;
  margin-bottom: 0.75rem !important;
}

.introjs-tooltiptext {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: var(--text-muted) !important;
}

.introjs-button {
  text-shadow: none !important;
  font-weight: 600 !important;
  border-radius: 50px !important; /* Pill style button */
  padding: 0.6rem 1.5rem !important;
  font-size: 0.9rem !important;
  transition: all 0.2s ease !important;
  font-family: var(--font-main) !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.introjs-prevbutton {
  background: white !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  margin-right: 0.5rem !important;
}

.introjs-prevbutton:hover {
  background: #f8fafc !important;
  color: var(--primary) !important;
  border-color: var(--primary-light) !important;
}

.introjs-nextbutton, .introjs-donebutton {
  background: var(--primary) !important;
  color: white !important;
  border: 1px solid var(--primary) !important;
  box-shadow: 0 4px 10px rgba(221, 110, 77, 0.25) !important;
}

.introjs-nextbutton:hover, .introjs-donebutton:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  color: white !important;
  box-shadow: 0 6px 15px rgba(221, 110, 77, 0.35) !important;
  transform: translateY(-1px) !important;
}

.introjs-button.introjs-disabled, 
.introjs-button.introjs-disabled:hover {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

.introjs-skipbutton {
  color: var(--text-muted) !important;
  font-weight: 500 !important;
  font-size: 1.1rem !important;
  top: 15px !important;
  right: 15px !important;
}

.introjs-skipbutton:hover {
  color: var(--primary) !important;
}

/* Fix for Intro.js v7 progress bar selectors */
.introjs-progress {
  background-color: #e2e8f0 !important;
  border-radius: 10px !important;
  height: 6px !important;
  margin-top: 1rem !important;
  margin-bottom: 0.5rem !important;
  overflow: hidden !important;
}

.introjs-progressbar {
  background-color: var(--primary) !important;
  border-radius: 10px !important;
  height: 100% !important;
  transition: width 0.3s ease !important;
}

.introjs-bullets ul li a {
  background: #cbd5e1 !important;
  width: 8px !important;
  height: 8px !important;
  transition: all 0.2s ease !important;
}

.introjs-bullets ul li a.active {
  background: var(--primary) !important;
  width: 20px !important; /* Symmetrical active pill dot */
  border-radius: 10px !important;
}

