/*
 * EmpleosCusco — Marketplace y Bolsa de Empleos: publicar, detalle, gestión y panel de postulantes.
 * Usa las variables de color definidas en custom.css.
 */
.seccion-oculta { display: none !important; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.hero-cta { margin-top: 18px; position: relative; }
.page-hero--compact { padding-top: 120px !important; padding-bottom: 36px !important; }
.page-hero--compact .breadcrumb-qc { margin: 0; }
.section-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section-head__actions .btn_one { margin-top: 0; }

/* Chips de categorías / áreas */
.cat-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: -10px 0 28px; }
.cat-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 30px;
	background: #fff; border: 1px solid var(--qc-border); color: var(--qc-dark); font-size: 14px; transition: .25s;
}
.cat-chip i { color: var(--qc-accent); }
.cat-chip span { background: #f3f4f7; border-radius: 20px; padding: 0 8px; font-size: 12px; color: var(--qc-muted); }
.cat-chip:hover { border-color: var(--qc-accent); color: var(--qc-dark); box-shadow: var(--qc-shadow); transform: translateY(-2px); }

/* Tarjetas: extras */
.product-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 46px; color: #c3c8d4; background: #f1f2f5; }
.product-card__count { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 20px; }
.job-card__salary small { font-family: 'Poppins', sans-serif; font-size: 11px; color: var(--qc-muted); display: block; text-align: right; }

/* Estado vacío */
.empty-state { text-align: center; background: #fff; border: 1px dashed #d7dbe6; border-radius: var(--qc-radius); padding: 50px 24px; }
.empty-state > i { font-size: 42px; color: var(--qc-accent); }
.empty-state h3 { font-size: 24px; margin: 14px 0 8px; }
.empty-state p { max-width: 460px; margin: 0 auto 18px; }
.filter-list--scroll { max-height: 280px; overflow-y: auto; padding-right: 6px; }
.price-range .form-control { min-width: 0; }

/* ---------- Formularios de publicación ---------- */
.form-section { background: #fff; border-radius: var(--qc-radius); box-shadow: var(--qc-shadow); padding: 28px 30px; margin-bottom: 22px; }
.form-section__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.form-section__head > span {
	flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--qc-accent); color: #fff;
	display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif; font-size: 18px;
}
.form-section__head h2 { font-size: 22px; font-weight: 600; margin: 0 0 2px; }
.form-section__head p { margin: 0; font-size: 14px; }
.campo .form-label { font-size: 13px; font-weight: 500; color: var(--qc-dark); margin-bottom: 5px; }
.campo .req { color: #c43c3c; }
.campo .form-control, .campo .form-select { min-height: 46px; border-radius: 8px; border-color: #dfe2ea; font-size: 15px; }
.campo textarea.form-control { min-height: 120px; }
.campo .form-control:focus, .campo .form-select:focus { border-color: var(--qc-accent); box-shadow: 0 0 0 3px rgba(255, 170, 23, .18); }
.campo.has-error .form-control, .campo.has-error .form-select { border-color: #e05252; }
.campo-error { color: #c43c3c; font-size: 13px; margin-top: 5px; }
.campo-check .form-check-input:checked, .verify-checks .form-check-input:checked { background-color: var(--qc-accent); border-color: var(--qc-accent); }
.campo-check .form-check-label { font-size: 14px; color: var(--qc-dark); }
.type-block { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--qc-border); }
.type-block h3, .salary-block h3, .sub-title { font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.type-block h3 i, .salary-block h3 i { color: var(--qc-accent); margin-right: 6px; }
.sub-title { margin-top: 24px; }
.publish-submit { width: 100%; height: 56px; font-size: 17px; }
.area-hint { color: var(--qc-accent-dark); min-height: 18px; }
.legal-note { display: flex; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: #f3f6ff; color: #2a4a8a; font-size: 13px; line-height: 1.5; }
.legal-note i { margin-top: 3px; }
.salary-block { margin: 22px 0 10px; padding: 18px; border-radius: 10px; background: #fffaf0; border: 1px solid #ffe6b8; transition: opacity .2s; }
.salary-block.is-disabled { opacity: .45; }
.benefit-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.benefit-picker__item {
	display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 0; border-radius: 8px; cursor: pointer;
	border: 1px solid #dfe2ea; font-size: 14px; color: var(--qc-dark); transition: .2s;
}
.benefit-picker__item input { accent-color: var(--qc-accent); width: 16px; height: 16px; }
.benefit-picker__item:has(input:checked) { border-color: var(--qc-accent); background: #fff7e8; }

/* Subida de fotos */
.dropzone {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer;
	border: 2px dashed #d7dbe6; border-radius: 12px; padding: 30px 20px; text-align: center; background: #fafbfc; transition: .2s; margin: 0;
}
.dropzone i { font-size: 34px; color: var(--qc-accent); }
.dropzone strong { color: var(--qc-dark); }
.dropzone small { color: var(--qc-muted); }
.dropzone.is-over, .dropzone:hover { border-color: var(--qc-accent); background: #fffaf0; }
.dropzone.has-files { padding: 16px; }
.dropzone.has-error { border-color: #e05252; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.photo-grid__item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f1f2f5; }
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid__item button {
	position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0;
	background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center;
}
.photo-grid__cover { position: absolute; left: 6px; bottom: 6px; background: var(--qc-accent); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 20px; }

/* Vista previa y consejos */
.preview-sticky { position: sticky; top: 100px; display: grid; gap: 18px; }
.preview-sticky .eyebrow { margin-bottom: -6px; }
.tips-card { background: #fff; border-radius: var(--qc-radius); padding: 22px 24px; box-shadow: var(--qc-shadow); border-top: 3px solid var(--qc-accent); }
.tips-card h4 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.tips-card h4 i { color: var(--qc-accent); margin-right: 6px; }
.tips-card ul, .tips-card ol { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.tips-card li { margin-bottom: 6px; }

/* Páginas de éxito y gestión */
.success-card { max-width: 680px; margin: 0 auto; background: #fff; border-radius: 16px; box-shadow: var(--qc-shadow); padding: 44px 40px; text-align: center; border-top: 4px solid #1f9d6b; }
.success-card__icon { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; background: #e6f6ef; color: #1f9d6b; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.success-card h1 { font-size: 32px; font-weight: 600; }
.success-card__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.manage-link { text-align: left; background: #f6f7fb; border-radius: 12px; padding: 18px; margin-top: 22px; }
.manage-link label { font-weight: 600; color: var(--qc-dark); font-size: 14px; margin-bottom: 8px; display: block; }
.manage-link label i { color: var(--qc-accent); }
.manage-link__row { display: flex; gap: 8px; }
.manage-link__row .btn_one { margin: 0; white-space: nowrap; }
.manage-link small { display: block; margin-top: 8px; color: var(--qc-muted); font-size: 12px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.stats-row strong { display: block; font-family: 'Oswald', sans-serif; font-size: 20px; color: var(--qc-dark); }
.stats-row span { font-size: 12px; color: var(--qc-muted); }
.manage-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.manage-actions .btn_one { margin: 0; }
.btn-danger-soft { background: #fdeeee; color: #c43c3c; border: 2px solid #f6caca; border-radius: 30px; padding: 8px 22px; transition: .2s; }
.btn-danger-soft:hover { background: #c43c3c; color: #fff; border-color: #c43c3c; }
.status { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.status--activo { background: #e6f6ef; color: #1f7a55; }
.status--pausado { background: #fff4e0; color: #9a5d00; }
.status--vendido, .status--cerrado { background: #eef0f4; color: #5a6275; }

/* ---------- Detalle (anuncio y empleo) ---------- */
.detail-card { background: #fff; border-radius: var(--qc-radius); box-shadow: var(--qc-shadow); padding: 26px 28px; margin-bottom: 22px; }
.detail-card__title { font-size: 21px; font-weight: 600; margin-bottom: 14px; }
.detail-card__title i { color: var(--qc-accent); margin-right: 6px; }
.detail-text p { margin-bottom: 10px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0; }
.spec-grid > div { background: #f6f7fb; border-radius: 8px; padding: 10px 14px; }
.spec-grid dt { font-size: 12px; color: var(--qc-muted); font-weight: 500; }
.spec-grid dd { margin: 0; color: var(--qc-dark); font-weight: 500; }
.safety-card ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.safety-card--mini { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #fff7e8; font-size: 13px; line-height: 1.5; color: #8a5a00; }

.gallery { background: #fff; border-radius: var(--qc-radius); box-shadow: var(--qc-shadow); padding: 12px; margin-bottom: 22px; }
.gallery__main { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #f1f2f5; display: flex; align-items: center; justify-content: center; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; background: #111; }
.gallery__sold { position: absolute; top: 16px; left: 16px; background: #c43c3c; color: #fff; padding: 6px 16px; border-radius: 30px; font-weight: 600; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery__thumbs button { flex: 0 0 76px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; opacity: .7; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button.is-active { border-color: var(--qc-accent); opacity: 1; }

.buy-box { position: sticky; top: 100px; background: #fff; border-radius: var(--qc-radius); box-shadow: var(--qc-shadow); padding: 28px; border-top: 4px solid var(--qc-accent); }
.buy-box__title { font-size: 28px; font-weight: 600; margin: 6px 0 10px; line-height: 1.25; }
.buy-box__price { font-family: 'Oswald', sans-serif; font-size: 34px; color: var(--qc-dark); margin-bottom: 14px; }
.buy-box__price small { font-family: 'Poppins', sans-serif; font-size: 13px; color: var(--qc-muted); }
.buy-box__facts { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 6px; font-size: 14px; }
.buy-box__facts i { color: var(--qc-accent); width: 20px; }
.buy-box__hint { font-size: 12px; color: var(--qc-muted); text-align: center; margin: 8px 0 0; }
.btn-whatsapp {
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; border-radius: 10px;
	background: #25d366; color: #fff; font-weight: 600; font-size: 16px; transition: .2s; border: 2px solid #25d366;
}
.btn-whatsapp:hover { background: #1ebe5b; border-color: #1ebe5b; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(37, 211, 102, .8); }
.btn-whatsapp--outline { width: auto; height: auto; padding: 8px 22px; border-radius: 30px; background: #fff; color: #1a9e4c; font-size: 15px; }
.btn-whatsapp--outline:hover { color: #fff; }
.btn-whatsapp--sm { width: auto; height: auto; padding: 5px 14px; border-radius: 30px; font-size: 13px; }
.btn--sm { padding: 4px 14px !important; font-size: 13px; margin-top: 0 !important; }
.seller { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--qc-border); }
.seller__avatar { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--qc-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif; font-size: 17px; }
.seller strong { display: block; color: var(--qc-dark); }
.seller small { color: var(--qc-muted); }
.share-btn { margin-top: 16px; font-size: 14px; }

/* Detalle de empleo */
.job-header { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.job-header .job-card__logo { flex-basis: 72px; height: 72px; font-size: 24px; }
.job-header__info { flex: 1; min-width: 240px; }
.job-header__info h1 { font-size: 30px; font-weight: 600; margin: 4px 0 6px; }
.job-header__company { margin-bottom: 10px; }
.job-header__company i { color: var(--qc-muted); }
.job-header__salary { text-align: right; }
.job-header__salary strong { display: block; font-family: 'Oswald', sans-serif; font-size: 26px; color: var(--qc-dark); }
.job-header__salary small { color: var(--qc-muted); }
.verified-chip { font-size: 12px; background: #e6f6ef; color: #1f7a55; border-radius: 20px; padding: 2px 9px; margin-left: 6px; }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.benefits li { background: #e9f7f1; color: #1f7a55; border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.summary-list { list-style: none; padding: 0; margin: 0 0 20px; }
.summary-list li { display: grid; grid-template-columns: 26px 90px 1fr; gap: 6px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--qc-border); font-size: 14px; }
.summary-list i { color: var(--qc-accent); }
.summary-list span { color: var(--qc-muted); }
.summary-list strong { color: var(--qc-dark); font-weight: 500; }

/* Postulación */
.apply-card { border-top: 4px solid var(--qc-accent); scroll-margin-top: 100px; }
.apply-card__intro { margin-bottom: 18px; }
.apply-step { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; margin: 24px 0 14px; }
.apply-step span { width: 28px; height: 28px; border-radius: 50%; background: var(--qc-dark); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.cv-upload { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 16px 18px; border-radius: 12px; border: 2px dashed #d7dbe6; background: #fafbfc; }
.cv-upload > i { font-size: 30px; color: var(--qc-accent); }
.cv-upload > div { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.cv-upload strong { color: var(--qc-dark); }
.cv-upload small { color: var(--qc-muted); font-size: 12px; }
.cv-upload .btn_one { margin: 0; cursor: pointer; }
.cv-upload.has-error { border-color: #e05252; }
.apply-done { text-align: center; padding: 20px 10px; }
.apply-done__lock { font-size: 36px; color: var(--qc-muted); }
.apply-done h2 { font-size: 24px; margin: 12px 0 8px; }

/* ---------- Panel del empleador ---------- */
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: #fff; border-radius: var(--qc-radius); box-shadow: var(--qc-shadow); padding: 22px 26px; margin-bottom: 20px; }
.panel-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.panel-stats strong { display: block; font-family: 'Oswald', sans-serif; font-size: 28px; color: var(--qc-dark); line-height: 1.1; }
.panel-stats span { font-size: 13px; color: var(--qc-muted); }
.panel-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-actions form { display: flex; gap: 8px; }
.panel-actions .btn_one { margin: 0; }
.panel-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.panel-tabs a { padding: 7px 14px; border-radius: 30px; background: #fff; border: 1px solid var(--qc-border); color: var(--qc-dark); font-size: 14px; }
.panel-tabs a span { margin-left: 4px; font-size: 12px; color: var(--qc-muted); }
.panel-tabs a.is-active { background: var(--qc-dark); color: #fff; border-color: var(--qc-dark); }
.panel-tabs a.is-active span { color: rgba(255, 255, 255, .7); }
.applicant-list { display: grid; gap: 14px; }
.applicant { background: #fff; border-radius: var(--qc-radius); border: 1px solid var(--qc-border); border-left: 4px solid #dfe2ea; padding: 18px 22px; scroll-margin-top: 100px; }
.applicant--new { border-left-color: var(--qc-accent); }
.applicant__head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.applicant__who { flex: 1; min-width: 200px; }
.applicant__who h3 { font-size: 19px; margin: 0 0 2px; }
.applicant__who p { margin: 0; font-size: 14px; }
.applicant__who small { color: var(--qc-muted); font-size: 12px; }
.new-dot { font-family: 'Poppins', sans-serif; font-size: 11px; background: var(--qc-accent); color: #fff; padding: 1px 8px; border-radius: 20px; vertical-align: middle; }
.applicant__contact { display: flex; gap: 8px; flex-wrap: wrap; }
.applicant__more { margin-top: 14px; }
.applicant__more summary { cursor: pointer; color: var(--qc-accent-dark); font-weight: 500; font-size: 14px; }
.applicant__more h4 { font-size: 16px; margin: 16px 0 6px; }
.applicant__more .spec-grid { margin-top: 12px; }
.applicant__manage { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--qc-border); }
.applicant__manage label { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 0; }
.applicant__manage .form-control { flex: 1; min-width: 180px; }

/* Menú: botón Publicar */
.site-navbar .site-navigation .site-menu > li.nav-publicar > a { padding: 8px 22px; }

@media (max-width: 991.98px) {
	.preview-sticky, .buy-box { position: static; }
	.form-section { padding: 22px 18px; }
}
@media (max-width: 575.98px) {
	.manage-link__row { flex-direction: column; }
	.job-header__salary { text-align: left; }
	.panel-stats { gap: 18px; }
	.success-card { padding: 32px 20px; }
	.cv-upload { flex-wrap: wrap; }
}
.panel-actions .btn_one, .panel-actions .btn-danger-soft { white-space: nowrap; font-size: 14px; padding: 6px 16px; }
.site-navbar .site-navigation .site-menu > li.nav-ingresar > a { padding-left: 14px; padding-right: 6px; }
