/* =============================================================
   Talentis â components.css
   WP Job Manager, Insights shortcode, Vagas page
   ============================================================= */

/* âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
   WP JOB MANAGER â Custom styles
   âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */

.job_listings {
  font-family: "Inter", sans-serif !important;
}

/* Search form */
.job-manager-form {
  margin-bottom: 32px;
}

.job-manager-form .search_jobs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.job-manager-form input[type="text"],
.job-manager-form input[type="search"],
.job-manager-form select {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  color: #0f1941;
  background: #fff;
  outline: none;
  border-radius: 0;
  height: auto;
  box-shadow: none;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}

.job-manager-form input:focus,
.job-manager-form select:focus {
  border-color: #2175d9;
}

.job-manager-form input[type="submit"],
.job-manager-form .search_jobs button {
  padding: 12px 28px;
  background: #0f1941;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  border-radius: 0;
  height: auto;
  transition: background 0.2s;
  white-space: nowrap;
}

.job-manager-form input[type="submit"]:hover {
  background: #2175d9;
}

/* Job listing list */
ul.job_listings {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: #e8ecf0;
}

ul.job_listings li.job_listing {
  background: #fff;
  transition: box-shadow 0.2s;
  position: relative;
}

ul.job_listings li.job_listing:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1;
}

ul.job_listings li.job_listing::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e8ecf0;
  transition: background 0.2s;
}

ul.job_listings li.job_listing:hover::before {
  background: #2175d9;
}

ul.job_listings li.job_listing a {
  text-decoration: none;
  display: block;
  padding: 24px 28px;
}

ul.job_listings li.job_listing .position {
  font-size: 18px;
  font-weight: 500;
  color: #0f1941;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  font-family: "Inter", sans-serif;
  line-height: 1.3;
}

ul.job_listings li.job_listing:hover .position {
  color: #2175d9;
}

ul.job_listings li.job_listing .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

ul.job_listings li.job_listing .meta span {
  font-size: 13px;
  color: #718096;
  font-family: "Inter", sans-serif;
  display: flex;
  align-items: center;
  gap: 5px;
}

ul.job_listings li.job_listing .meta .location::before {
  content: "ð";
  font-size: 11px;
}

ul.job_listings li.job_listing .meta .job-type {
  padding: 3px 10px;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 500;
  color: #2175d9;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

ul.job_listings li.job_listing .meta .date {
  color: #a0aec0;
  font-size: 12px;
  margin-left: auto;
}

ul.job_listings li.job_listing .company-logo {
  display: none;
}

ul.job_listings li.job_listing .company strong {
  font-size: 12px;
  color: #a0aec0;
  font-weight: 400;
  font-family: "Inter", sans-serif;
}

/* No results */
.job_listings .no_jobs_found_message {
  font-family: "Inter", sans-serif;
  color: #718096;
  padding: 48px 0;
  text-align: center;
}

/* Load more */
.load_more_jobs {
  display: block;
  width: fit-content;
  margin: 32px auto 0;
  padding: 13px 32px;
  background: #0f1941;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.load_more_jobs:hover {
  background: #2175d9;
}

/* Results count */
p.showing_jobs {
  font-size: 13px;
  color: #a0aec0;
  font-family: "Inter", sans-serif;
  margin-bottom: 20px;
}

/* âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
   INSIGHTS SHORTCODE â [talentis_insights]
   âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ */

.ti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e8ecf0;
}

.ti-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.ti-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.ti-card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.ti-card-img-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ti-card-img-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
}

.ti-card-img-num {
  font-size: 80px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
  position: absolute;
  right: 16px;
  bottom: -8px;
  font-family: "Inter", sans-serif;
  line-height: 1;
  user-select: none;
}

.ti-card-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  backdrop-filter: blur(4px);
  font-family: "Inter", sans-serif;
}

.ti-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ti-card-date {
  font-size: 12px;
  color: #a0aec0;
  margin-bottom: 10px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
}

.ti-card-title {
  font-size: 16px;
  font-weight: 500;
  color: #0f1941;
  line-height: 1.35;
  letter-spacing: -0.02em;
  flex: 1;
  font-family: "Inter", sans-serif;
  margin-bottom: 16px;
  transition: color 0.15s;
}

.ti-card:hover .ti-card-title {
  color: #2175d9;
}

.ti-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f4f8;
  padding-top: 14px;
  margin-top: auto;
}

.ti-card-read {
  font-size: 12px;
  color: #a0aec0;
  font-family: "Inter", sans-serif;
}

.ti-card-arrow {
  font-size: 16px;
  color: #cbd5e0;
  transition: transform 0.2s, color 0.2s;
}

.ti-card:hover .ti-card-arrow {
  transform: translateX(4px);
  color: #2175d9;
}

/* Insights pagination */
.ti-pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 48px;
}

.ti-pagination a,
.ti-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  text-decoration: none;
  transition: all 0.15s;
  border: 1px solid #e8ecf0;
  color: #0f1941;
}

.ti-pagination a:hover {
  background: #0f1941;
  color: #fff;
  border-color: #0f1941;
}

.ti-pagination .current {
  background: #0f1941;
  color: #fff;
  border-color: #0f1941;
}

/* Insights filter buttons */
.ti-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  border-bottom: 1px solid #e8ecf0;
  padding-bottom: 24px;
}

.ti-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.01em;
  transition: all 0.2s;
  border: 1px solid #e8ecf0;
  color: #718096;
}

.ti-filter-btn:hover,
.ti-filter-btn.active {
  background: #0f1941;
  color: #fff;
  border-color: #0f1941;
}

.ti-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 10px;
  margin-left: 6px;
}

/* ââ Responsive ââ */
@media (max-width: 900px) {
  .ti-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .ti-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   Talentis — Contact Form
   ═══════════════════════════════════════════════════════ */

.tf-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}

.tf-left {}

.tf-left h2 {
  font-size: clamp(24px,3vw,38px);
  font-weight: 700;
  color: #0F1941;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.tf-left p {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.7;
  margin: 0 0 40px;
}

.tf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

.tf-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tf-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.tf-field label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #374151;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.tf-field input[type="text"],
.tf-field input[type="email"],
.tf-field input[type="tel"],
.tf-field select,
.tf-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5eaf0;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #111;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.tf-field input:focus,
.tf-field select:focus,
.tf-field textarea:focus {
  border-color: #2175D9;
}

.tf-field input.wpcf7-not-valid,
.tf-field select.wpcf7-not-valid,
.tf-field textarea.wpcf7-not-valid {
  border-color: #ef4444;
}

.tf-field select {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.tf-field textarea {
  resize: vertical;
  min-height: 140px;
}

/* Consent */
.tf-consent {
  margin: 4px 0 24px;
}

.tf-consent .wpcf7-acceptance {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tf-consent .wpcf7-list-item {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tf-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #2175D9;
}

.tf-consent .wpcf7-list-item-label {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

.tf-consent .wpcf7-list-item-label a {
  color: #2175D9;
  text-decoration: underline;
}

/* Submit */
.tf-submit {
  margin-top: 4px;
}

.tf-submit input[type="submit"],
.tf-submit .wpcf7-submit {
  height: 50px;
  padding: 0 36px;
  background: #2175D9;
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: -0.01em;
}

.tf-submit input[type="submit"]:hover,
.tf-submit .wpcf7-submit:hover {
  background: #1560BB;
}

/* Response messages */
.wpcf7-response-output {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  border: none !important;
}

.wpcf7-mail-sent-ok {
  background: #ecfdf5;
  color: #065f46;
  border-left: 3px solid #10b981 !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-validation-errors {
  background: #fef2f2;
  color: #991b1b;
  border-left: 3px solid #ef4444 !important;
}

.wpcf7-not-valid-tip {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
}

/* Sidebar de contacto */
.tf-right {}

.tf-info-card {
  background: #0F1941;
  padding: 32px;
  margin-bottom: 0;
}

.tf-info-card + .tf-info-card {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.tf-info-section {
  background: #0F1941;
  padding: 32px 32px 0;
}

.tf-info-section + .tf-info-section {
  padding-top: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.tf-info-box {
  background: #0F1941;
  padding: 32px;
}

.tf-info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2175D9;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}

.tf-info-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  font-family: 'Inter', sans-serif;
}

.tf-info-text {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin: 0 0 20px;
  font-family: 'Inter', sans-serif;
}

.tf-info-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.tf-info-item-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 3px;
  font-family: 'Inter', sans-serif;
}

.tf-info-item-value {
  font-size: 14px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}

.tf-info-item-value:hover { color: #2175D9; }

.tf-info-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 24px 0;
}

.tf-cv-box {
  background: #f4f6fb;
  padding: 24px;
  margin-top: 24px;
  border: 1px solid #e8ecf0;
}

.tf-cv-box-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F1941;
  margin: 0 0 8px;
  font-family: 'Inter', sans-serif;
}

.tf-cv-box-text {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 16px;
  font-family: 'Inter', sans-serif;
}

.tf-cv-box a {
  display: inline-block;
  padding: 10px 20px;
  background: #0F1941;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
}

.tf-cv-box a:hover { background: #1a2a5e; }

@media(max-width:900px) {
  .tf-wrap { grid-template-columns: 1fr; gap: 40px; }
  .tf-grid { grid-template-columns: 1fr; }
}
