/*
 * Evento Empleo 2.7.1 — identidad visual global
 * Extiende al resto del portal la skin aprobada del Home.
 * No modifica estructura, rutas ni lógica: solo apariencia y respuesta móvil.
 */

body:not(.page-home) {
  --bg: #f8f5f8;
  --surface: #ffffff;
  --surface-strong: #fff0f6;
  --text: #191526;
  --muted: #6f6878;
  --line: #eadce5;
  --brand: #f5006c;
  --brand-strong: #b90055;
  --accent: #ffc400;
  --ink: #090d1c;
  --danger: #a82f45;
  --shadow: 0 18px 48px rgba(45, 18, 43, 0.09);
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 196, 0, 0.09), transparent 26rem),
    radial-gradient(circle at 96% 14%, rgba(245, 0, 108, 0.07), transparent 30rem),
    var(--bg);
  color: var(--text);
}

body:not(.page-home) main {
  background: transparent;
}

/* Cabecera global: misma familia visual del Home */
body:not(.page-home) .site-header {
  background: rgba(9, 13, 28, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 34px rgba(9, 13, 28, 0.15);
  color: #fff;
  padding: 12px clamp(18px, 4vw, 64px);
}

body:not(.page-home) .brand {
  color: #fff;
}

body:not(.page-home) .brand-mark {
  background: linear-gradient(145deg, #ff6a00, #f5006c);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(245, 0, 108, 0.3);
  font-size: 0.9rem;
  height: 44px;
  transform: rotate(-3deg);
  width: 44px;
}

body:not(.page-home) .brand strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

body:not(.page-home) .brand small {
  color: rgba(255, 255, 255, 0.62);
}

body:not(.page-home) .nav-link {
  color: rgba(255, 255, 255, 0.79);
}

body:not(.page-home) .nav-link:hover,
body:not(.page-home) .nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body:not(.page-home) .site-header .btn-soft {
  background: linear-gradient(115deg, #ff6a00, #f5006c);
  color: #fff;
}

body:not(.page-home) .menu-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Banners interiores con imagen: continuidad visual del Home sin textos ni CTA incrustados */
body:not(.page-home) .page-section {
  padding-top: clamp(24px, 4vw, 42px);
}

body:not(.page-home) .page-section > .page-heading:first-child,
body:not(.page-home) .dashboard-content > .page-heading:first-child {
  align-items: flex-start;
  background-color: #090d1c;
  background-image:
    linear-gradient(90deg, rgba(255, 82, 0, 0.50) 0%, rgba(245, 0, 108, 0.30) 42%, rgba(9, 13, 28, 0.08) 70%, rgba(9, 13, 28, 0.34) 100%),
    linear-gradient(180deg, rgba(9, 13, 28, 0.00) 42%, rgba(9, 13, 28, 0.74) 100%),
    url('../img/subpage-event-banner.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(44, 12, 43, 0.2);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  margin-bottom: 24px;
  min-height: clamp(220px, 23vw, 280px);
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  position: relative;
}

body:not(.page-home) .page-section > .page-heading:first-child::before,
body:not(.page-home) .dashboard-content > .page-heading:first-child::before {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 196, 0, 0.2), transparent 30%),
    linear-gradient(90deg, rgba(9, 13, 28, 0.1), transparent 58%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

body:not(.page-home) .page-section > .page-heading:first-child::after,
body:not(.page-home) .dashboard-content > .page-heading:first-child::after {
  background: linear-gradient(90deg, #ffc400, #ff6a00, #f5006c);
  border: 0;
  border-radius: 999px;
  bottom: 0;
  content: '';
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: auto;
  width: auto;
}

body:not(.page-home) .page-section > .page-heading:first-child h1,
body:not(.page-home) .page-section > .page-heading:first-child h2,
body:not(.page-home) .dashboard-content > .page-heading:first-child h1,
body:not(.page-home) .dashboard-content > .page-heading:first-child h2 {
  color: #fff;
  font-size: clamp(38px, 5.4vw, 66px);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 0;
  max-width: min(900px, 78%);
  position: relative;
  text-shadow: 0 4px 22px rgba(9, 13, 28, 0.34);
  z-index: 1;
}

body:not(.page-home) .page-section > .page-heading:first-child p,
body:not(.page-home) .page-section > .page-heading:first-child .lead,
body:not(.page-home) .dashboard-content > .page-heading:first-child p,
body:not(.page-home) .dashboard-content > .page-heading:first-child .lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.45;
  max-width: 720px;
  position: relative;
  text-shadow: 0 2px 14px rgba(9, 13, 28, 0.42);
  z-index: 1;
}

body:not(.page-home) .page-section > .page-heading:first-child .eyebrow,
body:not(.page-home) .dashboard-content > .page-heading:first-child .eyebrow {
  background: rgba(9, 13, 28, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  letter-spacing: 0.035em;
  padding: 8px 13px;
  position: relative;
  text-transform: uppercase;
  width: fit-content;
  z-index: 1;
}

body:not(.page-home) .page-section > .page-heading:first-child .hero-actions,
body:not(.page-home) .dashboard-content > .page-heading:first-child .hero-actions {
  position: relative;
  z-index: 1;
}

body:not(.page-home) .page-section > .page-heading:first-child .btn-soft,
body:not(.page-home) .dashboard-content > .page-heading:first-child .btn-soft {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.72);
  color: #b90055;
}

body:not(.page-home) .eyebrow {
  color: var(--brand);
}

/* Encabezados visuales de paneles que todavía usan un h1 directo */
body:not(.page-home) .dashboard-content > h1:first-child,
body.page-crear_empleo .panel > h1:first-child {
  align-items: flex-end;
  background-color: #090d1c;
  background-image:
    linear-gradient(90deg, rgba(255, 82, 0, 0.50) 0%, rgba(245, 0, 108, 0.30) 42%, rgba(9, 13, 28, 0.10) 72%, rgba(9, 13, 28, 0.38) 100%),
    linear-gradient(180deg, rgba(9, 13, 28, 0.00) 35%, rgba(9, 13, 28, 0.76) 100%),
    url('../img/subpage-event-banner.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  box-shadow: 0 22px 54px rgba(44, 12, 43, 0.18);
  color: #fff;
  display: flex;
  font-size: clamp(36px, 4.8vw, 58px);
  justify-content: flex-start;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0 0 24px;
  min-height: clamp(170px, 18vw, 220px);
  overflow: hidden;
  padding: clamp(26px, 4vw, 42px);
  position: relative;
  text-shadow: 0 4px 22px rgba(9, 13, 28, 0.4);
}

body:not(.page-home) .dashboard-content > h1:first-child::after,
body.page-crear_empleo .panel > h1:first-child::after {
  background: linear-gradient(90deg, #ffc400, #ff6a00, #f5006c);
  bottom: 0;
  content: '';
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
}

body:not(.page-home) .login-access-panel {
  margin: 0 auto;
  max-width: 920px;
}

body:not(.page-home) .login-access-panel > h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}


body:not(.page-home) .section-header h2,
body:not(.page-home) .dashboard-content h1,
body:not(.page-home) .detail-main h1 {
  color: var(--text);
  letter-spacing: -0.035em;
}

body:not(.page-home) .section-header h2::after,
body:not(.page-home) .panel-section > h3::after {
  background: linear-gradient(90deg, #ffc400, #ff6a00, #f5006c);
  border-radius: 999px;
  content: '';
  display: block;
  height: 4px;
  margin-top: 9px;
  width: 58px;
}

/* Botones */
body:not(.page-home) .btn {
  border-radius: 12px;
  min-height: 46px;
  transition: box-shadow 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}

body:not(.page-home) .btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

body:not(.page-home) .btn-primary {
  background: linear-gradient(110deg, #f5006c, #ff6a00);
  box-shadow: 0 10px 24px rgba(245, 0, 108, 0.2);
  color: #fff;
}

body:not(.page-home) .btn-dark {
  background: linear-gradient(120deg, #090d1c, #281335);
  color: #fff;
}

body:not(.page-home) .btn-soft {
  background: #fff0f6;
  border: 1px solid rgba(245, 0, 108, 0.14);
  color: #b90055;
}

body:not(.page-home) .btn-soft:hover {
  background: #ffe4f0;
}

body:not(.page-home) .text-button,
body:not(.page-home) .back-link {
  color: #c00059;
}

body:not(.page-home) .back-link {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 16px;
  padding: 9px 13px;
}

/* Tarjetas y superficies */
body:not(.page-home) .job-card,
body:not(.page-home) .metric-card,
body:not(.page-home) .profile-card,
body:not(.page-home) .panel-section,
body:not(.page-home) .detail-main,
body:not(.page-home) .detail-aside,
body:not(.page-home) .company-row,
body:not(.page-home) .news-row,
body:not(.page-home) .access-card,
body:not(.page-home) .company-card,
body:not(.page-home) .cv-document,
body:not(.page-home) .admin-company-card,
body:not(.page-home) .review-card,
body:not(.page-home) .application-card,
body:not(.page-home) .applicant-card,
body:not(.page-home) .editable-news-card,
body:not(.page-home) .email-log article {
  border-color: var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

body:not(.page-home) .job-card,
body:not(.page-home) .profile-card,
body:not(.page-home) .panel-section,
body:not(.page-home) .access-card,
body:not(.page-home) .company-card {
  position: relative;
}

body:not(.page-home) .job-card::before,
body:not(.page-home) .access-card::before,
body:not(.page-home) .metric-card::before {
  background: linear-gradient(90deg, #ffc400, #ff6a00, #f5006c);
  border-radius: 18px 18px 0 0;
  content: '';
  height: 4px;
  inset: -1px -1px auto;
  position: absolute;
}

body:not(.page-home) .job-card:hover,
body:not(.page-home) .company-card:hover,
body:not(.page-home) .access-card:hover {
  border-color: rgba(245, 0, 108, 0.24);
  box-shadow: 0 22px 56px rgba(69, 20, 57, 0.13);
}

body:not(.page-home) .content-band {
  background: linear-gradient(145deg, #fff8e7, #fff0f6 52%, #f5f2f8);
  border-color: #f0d9df;
  border-radius: 20px;
}

body:not(.page-home) .category-chip,
body:not(.page-home) .choice-card,
body:not(.page-home) .plan-choice-card {
  border-radius: 14px;
}

body:not(.page-home) .category-chip:hover,
body:not(.page-home) .choice-card.active,
body:not(.page-home) .plan-choice-card:has(input:checked) {
  border-color: #f5006c;
  box-shadow: inset 0 0 0 1px #f5006c, 0 10px 28px rgba(245, 0, 108, 0.08);
}

body:not(.page-home) .logo-tile,
body:not(.page-home) .company-logo,
body:not(.page-home) .avatar,
body:not(.page-home) .card-media-small > span,
body:not(.page-home) .profile-logo > span {
  background: linear-gradient(145deg, #ff6a00, #f5006c);
  color: #fff;
}

body:not(.page-home) .status-pill,
body:not(.page-home) .company-status,
body:not(.page-home) .tag-list a,
body:not(.page-home) .admin-chip-list span {
  background: #fff1c9;
  color: #835d00;
}

body:not(.page-home) .news-row > span,
body:not(.page-home) .company-row > span,
body:not(.page-home) .email-log span {
  color: #c00059;
}

body:not(.page-home) .metric-card strong,
body:not(.page-home) .plan-price {
  color: #b90055;
}

body:not(.page-home) .metric-card svg,
body:not(.page-home) .access-card svg {
  color: #f5006c;
}

body:not(.page-home) .empty-state {
  background: linear-gradient(145deg, #fff, #fff6fa);
  border: 1px dashed rgba(245, 0, 108, 0.28);
  border-radius: 18px;
}

/* Buscadores y formularios */
body:not(.page-home) .search-strip {
  background: #fff;
  border-color: var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 55px rgba(53, 18, 47, 0.1);
  padding: 16px;
  position: relative;
}

body:not(.page-home) .search-strip::before {
  background: linear-gradient(90deg, #ffc400, #ff6a00, #f5006c);
  border-radius: 20px 20px 0 0;
  content: '';
  height: 5px;
  inset: -1px -1px auto;
  position: absolute;
}

body:not(.page-home) .job-results-summary {
  background: linear-gradient(110deg, #f5006c, #ff6a00);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(245, 0, 108, 0.2);
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  margin: 0 0 18px;
  min-height: 42px;
  padding: 10px 16px;
  align-items: center;
}

body:not(.page-home) .filter-field,
body:not(.page-home) .input-like {
  background: #fbf8fb;
  border-color: #eadce5;
  border-radius: 12px;
}

body:not(.page-home) .form-grid input,
body:not(.page-home) .form-grid select,
body:not(.page-home) .form-grid textarea,
body:not(.page-home) .job-form input,
body:not(.page-home) .job-form select,
body:not(.page-home) .job-form textarea,
body:not(.page-home) .create-job-form input,
body:not(.page-home) .create-job-form select,
body:not(.page-home) .create-job-form textarea,
body:not(.page-home) .candidate-filter-form input,
body:not(.page-home) .candidate-filter-form select,
body:not(.page-home) .candidate-search-context select,
body:not(.page-home) .applicant-head select,
body:not(.page-home) .admin-job-row select,
body:not(.page-home) .inline-form input,
body:not(.page-home) .table-like select,
body:not(.page-home) .editable-news-card input,
body:not(.page-home) .editable-news-card select,
body:not(.page-home) .editable-news-card textarea,
body:not(.page-home) .inline select,
body:not(.page-home) .access-card select {
  background: #fbf8fb;
  border-color: #e6d7e1;
  border-radius: 11px;
  color: var(--text);
  min-height: 46px;
}

body:not(.page-home) input:focus,
body:not(.page-home) select:focus,
body:not(.page-home) textarea:focus {
  border-color: #f5006c !important;
  box-shadow: 0 0 0 3px rgba(245, 0, 108, 0.12) !important;
  outline: 0;
}

body:not(.page-home) input[type='checkbox'],
body:not(.page-home) input[type='radio'] {
  accent-color: #f5006c;
}

body:not(.page-home) .form-actions {
  border-top-color: var(--line);
}

/* Detalle de empleo y datos */
body:not(.page-home) .detail-layout {
  gap: 22px;
}

body:not(.page-home) .detail-main,
body:not(.page-home) .detail-aside {
  border-radius: 22px;
}

body:not(.page-home) .detail-main {
  border-top: 5px solid #f5006c;
}

body:not(.page-home) .detail-aside {
  border-top: 5px solid #ffc400;
}

body:not(.page-home) .info-grid div,
body:not(.page-home) .settings-grid p,
body:not(.page-home) .settings-grid label,
body:not(.page-home) .cv-grid div,
body:not(.page-home) .company-detail-grid span {
  background: #fbf7fa;
  border: 1px solid #efe1e9;
  border-radius: 13px;
}

body:not(.page-home) .info-grid span,
body:not(.page-home) .cv-grid dt {
  color: #b90055;
}

/* Detalle de empleo: mantiene la columna lateral alineada con textos largos. */
body.page-empleo .detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
}

body.page-empleo .detail-main,
body.page-empleo .detail-aside,
body.page-empleo .detail-aside > *,
body.page-empleo .detail-company-head > * {
  min-width: 0;
}

body.page-empleo .detail-aside {
  width: 100%;
}

body.page-empleo .detail-company-head {
  align-items: flex-start;
}

body.page-empleo .detail-company-head > :last-child {
  flex: 1 1 auto;
}

body.page-empleo .detail-company-head h2,
body.page-empleo .detail-company-head p {
  overflow-wrap: anywhere;
}

body.page-empleo .detail-aside .btn {
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

/* Paneles candidato, empleador y administración */
body:not(.page-home) .dashboard {
  gap: 22px;
}

body:not(.page-home) .dashboard-nav {
  background:
    linear-gradient(155deg, #090d1c 0%, #21102d 60%, #74003b 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 22px 55px rgba(9, 13, 28, 0.18);
}

body:not(.page-home) .dashboard-nav a,
body:not(.page-home) .dashboard-nav button {
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.78);
}

body:not(.page-home) .dashboard-nav a:hover,
body:not(.page-home) .dashboard-nav a.active,
body:not(.page-home) .dashboard-nav button:hover,
body:not(.page-home) .dashboard-nav button.active {
  background: linear-gradient(110deg, rgba(245, 0, 108, 0.92), rgba(255, 106, 0, 0.88));
  color: #fff;
}

body:not(.page-home) .active-section-note {
  background: #fff1c9;
  border: 1px solid #f1d26e;
  border-radius: 14px;
  color: #714e00;
}

body:not(.page-home) .panel-section,
body:not(.page-home) .profile-card {
  border-radius: 20px;
}

body:not(.page-home) .employer-cta-card,
body:not(.page-home) .create-job-plan-note,
body:not(.page-home) .candidate-search-context,
body:not(.page-home) .candidate-search-profile {
  background: linear-gradient(145deg, #fff8df, #fff0f6);
  border-color: #f0d8df;
}

body:not(.page-home) .create-job-form,
body:not(.page-home) .job-form-section,
body:not(.page-home) .candidate-filter-panel,
body:not(.page-home) .candidate-search-locked,
body:not(.page-home) .plan-selector {
  border-color: var(--line);
  border-radius: 18px;
}

body:not(.page-home) .job-form-section-heading,
body:not(.page-home) .locked-filter-section {
  border-bottom-color: var(--line);
}

body:not(.page-home) .locked-filter-chip {
  background: #f3eff4;
  border-color: #e6d8e2;
  color: #796e7a;
}

body:not(.page-home) .notification-card-unread {
  background: #fff6fa;
  border-color: rgba(245, 0, 108, 0.3);
  box-shadow: 0 16px 42px rgba(245, 0, 108, 0.09);
}

body:not(.page-home) .notification-status-unread {
  background: #ffe3ef;
  color: #a8004d;
}

body:not(.page-home) .notification-status-read {
  background: #f1edf2;
  color: #6f6878;
}

body:not(.page-home) .match-card,
body:not(.page-home) .match-inline {
  border-color: rgba(245, 0, 108, 0.18);
}

body:not(.page-home) .match-card {
  background: linear-gradient(145deg, #fff8df, #fff0f6);
}

body:not(.page-home) .plan-card {
  overflow: hidden;
}

body:not(.page-home) .plan-card::before {
  background: linear-gradient(90deg, #ffc400, #ff6a00, #f5006c);
  content: '';
  height: 5px;
  inset: 0 0 auto;
  position: absolute;
}

body:not(.page-home) .admin-danger-zone {
  background: #fff1f3;
  border-color: #efc7cf;
}

/* Tablas y listados administrativos */
body:not(.page-home) .table-like,
body:not(.page-home) .admin-job-list,
body:not(.page-home) .admin-company-list,
body:not(.page-home) .company-list,
body:not(.page-home) .application-list,
body:not(.page-home) .applicant-list,
body:not(.page-home) .review-list {
  gap: 12px;
}

body:not(.page-home) .table-like > div,
body:not(.page-home) .admin-job-row {
  border-bottom-color: var(--line);
}

/* Footer común */
.site-footer {
  background: linear-gradient(115deg, #090d1c 0%, #1a1130 58%, #b90055 100%);
  border-top: 4px solid #ffc400;
  box-shadow: 0 -18px 50px rgba(9, 13, 28, 0.18);
}

.site-footer strong {
  color: #fff;
  font-size: 1.18rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  padding: 7px 10px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #ffc400;
}

/* Mobile-first: legibilidad y controles táctiles */
@media (max-width: 920px) {
  body.page-empleo .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.page-home) .nav-links {
    background: #11162a;
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    top: 68px;
  }

  body:not(.page-home) .nav-links .btn-soft {
    width: 100%;
  }

  body:not(.page-home) .dashboard-nav {
    position: static;
  }
}

@media (max-width: 620px) {
  body:not(.page-home) main {
    padding-left: 14px;
    padding-right: 14px;
  }

  body:not(.page-home) .site-header {
    min-height: 66px;
    padding: 10px 15px;
  }

  body:not(.page-home) .brand-mark {
    border-radius: 11px;
    height: 39px;
    width: 39px;
  }

  body:not(.page-home) .brand strong {
    font-size: 0.95rem;
  }

  body:not(.page-home) .page-section {
    padding-top: 24px;
  }

  body:not(.page-home) .page-section > .page-heading:first-child,
  body:not(.page-home) .dashboard-content > .page-heading:first-child {
    background-position: 68% center;
    border-radius: 19px;
    min-height: 188px;
    padding: 22px 19px;
  }

  body:not(.page-home) .page-section > .page-heading:first-child h1,
  body:not(.page-home) .page-section > .page-heading:first-child h2,
  body:not(.page-home) .dashboard-content > .page-heading:first-child h1,
  body:not(.page-home) .dashboard-content > .page-heading:first-child h2 {
    font-size: clamp(34px, 10.5vw, 46px);
    max-width: 100%;
  }

  body:not(.page-home) .page-section > .page-heading:first-child p,
  body:not(.page-home) .page-section > .page-heading:first-child .lead,
  body:not(.page-home) .dashboard-content > .page-heading:first-child p,
  body:not(.page-home) .dashboard-content > .page-heading:first-child .lead {
    font-size: 16px;
    max-width: 100%;
  }

  body:not(.page-home) .page-section > .page-heading:first-child .hero-actions,
  body:not(.page-home) .dashboard-content > .page-heading:first-child .hero-actions {
    align-items: stretch;
    width: 100%;
  }

  body:not(.page-home) .dashboard-content > h1:first-child,
  body.page-crear_empleo .panel > h1:first-child {
    background-position: 68% center;
    border-radius: 18px;
    font-size: clamp(32px, 9.5vw, 42px);
    min-height: 154px;
    padding: 22px 19px;
  }

  body:not(.page-home) .search-strip,
  body:not(.page-home) .job-card,
  body:not(.page-home) .profile-card,
  body:not(.page-home) .panel-section,
  body:not(.page-home) .detail-main,
  body:not(.page-home) .detail-aside,
  body:not(.page-home) .company-card,
  body:not(.page-home) .access-card {
    border-radius: 16px;
  }

  body:not(.page-home) .search-strip {
    padding: 14px;
  }

  body:not(.page-home) .filter-field,
  body:not(.page-home) .input-like,
  body:not(.page-home) input,
  body:not(.page-home) select,
  body:not(.page-home) textarea {
    font-size: 16px;
  }

  body:not(.page-home) .btn {
    min-height: 48px;
  }

  body:not(.page-home) .job-card.wide {
    align-items: stretch;
  }

  body:not(.page-home) .job-card-actions,
  body:not(.page-home) .form-actions {
    align-items: stretch;
  }

  body:not(.page-home) .job-card-actions .btn,
  body:not(.page-home) .form-actions .btn {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    gap: 20px;
  }

  .site-footer div:last-child {
    gap: 6px;
  }

  .site-footer a {
    padding: 7px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.page-home) .btn,
  body:not(.page-home) .job-card,
  body:not(.page-home) .company-card,
  body:not(.page-home) .access-card {
    transition: none;
  }
}

/* Evento Empleo 3.0.9: logo global administrable sin alterar textos ni layout. */
body.has-custom-site-logo .brand-mark {
  background-color: #fff !important;
  background-image: var(--ee-site-brand-logo) !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: calc(100% - 6px) calc(100% - 6px) !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  overflow: hidden;
  transform: none !important;
}

.branding-settings-card {
  grid-column: 1 / -1;
}

.branding-live-preview {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0;
}

.branding-preview-row {
  align-items: center;
  background: rgba(9, 13, 28, 0.96);
  border-radius: 16px;
  color: #fff;
  display: flex;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
}

.branding-preview-row small {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  margin-top: 2px;
}

.site-brand-upload-preview {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 14px;
  display: flex;
  height: 112px;
  justify-content: center;
  margin: 4px 0 12px;
  overflow: hidden;
  padding: 10px;
  width: 112px;
}

.site-brand-upload-preview[hidden] {
  display: none;
}

.site-brand-upload-preview img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.site-brand-upload-preview span {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.branding-reset-form {
  border-top: 1px solid rgba(17, 24, 39, 0.1);
  margin-top: 16px;
  padding-top: 16px;
}

@media (max-width: 680px) {
  .branding-live-preview {
    grid-template-columns: 1fr;
  }
}

/* Logos de empresa: la imagen o las iniciales aprovechan toda la zona asignada. */
.profile-logo > img,
.card-media-small:not(.candidate-media) > img,
.company-logo > img,
.logo-tile > img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-logo > span,
.card-media-small:not(.candidate-media) > span {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  line-height: 1;
  text-align: center;
  width: 100%;
}

.profile-logo > span {
  font-size: 1.35rem;
}

.card-media-small:not(.candidate-media) > span,
.company-logo {
  font-size: 1rem;
}

/* Evento Empleo 3.3.2: corrección responsive integral y acotada al área Admin.
   Mantiene intactos candidato, empleador y páginas públicas. */
body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard,
body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard > *,
body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-content,
body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-content > *,
body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .panel-section,
body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .stack,
body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-grid,
body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .job-card,
body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .profile-card,
body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .news-row,
body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .admin-company-card,
body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .admin-job-row,
body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .table-like {
  min-width: 0;
}

body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard {
  width: 100%;
}

body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) :is(h1, h2, h3, p, small, strong, a, span, label) {
  max-width: 100%;
}

body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) :is(
  .admin-card-copy,
  .admin-card-copy p,
  .admin-profile-card p,
  .admin-company-card p,
  .admin-job-row p,
  .news-row p,
  .job-card p,
  .table-like,
  .admin-cv-summary-text,
  .admin-one-time-password code
) {
  overflow-wrap: anywhere;
  word-break: normal;
}

body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) :is(input, select, textarea, button, .btn) {
  max-width: 100%;
}

body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .table-like {
  overflow-x: auto;
}

body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) :is(
  .section-header,
  .section-header-split,
  .section-heading-row,
  .employer-section-header,
  .active-section-note,
  .admin-company-head
) {
  flex-wrap: wrap;
  min-width: 0;
}

@media (max-width: 1180px) and (min-width: 921px) {
  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard {
    gap: 18px;
    grid-template-columns: 220px minmax(0, 1fr);
    max-width: 100%;
    padding-top: 30px;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav {
    padding: 14px;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav :is(a, button) {
    padding-left: 10px;
    padding-right: 10px;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) :is(
    .dashboard-grid,
    .category-admin-grid,
    .visual-group-admin-grid,
    .branding-live-preview
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .search-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .search-strip .span-2 {
    grid-column: 1 / -1;
  }

  body.page-admin_candidatos .admin-profile-card .profile,
  body.page-admin .admin-profile-card .profile {
    align-items: flex-start;
  }
}

@media (max-width: 920px) {
  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard {
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
    padding: 24px 0 34px;
  }

  /* El menú lateral pasa a navegación horizontal desplazable, evitando una
     columna enorme antes del contenido en tablet y móvil. */
  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav {
    align-items: center;
    display: flex;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 10px;
    position: static;
    scrollbar-width: thin;
    white-space: nowrap;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav > div:first-child {
    flex: 0 0 auto;
    margin: 0 4px 0 0;
    padding-right: 10px;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav :is(a, button) {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-content {
    width: 100%;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) :is(
    .dashboard-grid,
    .category-admin-grid,
    .visual-group-admin-grid,
    .branding-live-preview
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .search-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .search-strip .span-2 {
    grid-column: 1 / -1;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) :is(
    .admin-job-row,
    .inline-form,
    .media-admin-card,
    .settings-form-grid
  ) {
    grid-template-columns: minmax(0, 1fr);
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .admin-company-head {
    align-items: flex-start;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .table-like > div {
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) :is(
    .dashboard-grid,
    .category-admin-grid,
    .visual-group-admin-grid,
    .branding-live-preview,
    .search-strip
  ) {
    grid-template-columns: minmax(0, 1fr);
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .search-strip .span-2 {
    grid-column: 1;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .admin-profile-card .profile {
    align-items: flex-start;
    width: 100%;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .admin-profile-card .profile > :last-child {
    min-width: 0;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .admin-category-summary-card {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .admin-category-summary-card :is(p, .status-pill) {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard {
    padding-top: 18px;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav {
    border-radius: 15px;
    margin-left: -2px;
    margin-right: -2px;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) :is(.panel-section, .profile-card, .job-card, .news-row, .admin-company-card) {
    padding: 16px;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) :is(
    .section-header,
    .section-header-split,
    .section-heading-row,
    .employer-section-header,
    .active-section-note,
    .admin-company-head,
    .form-actions
  ) {
    align-items: stretch;
    flex-direction: column;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) :is(
    .form-actions .btn,
    .employer-section-footer .btn,
    .admin-news-actions .btn,
    .admin-news-actions form,
    .admin-news-actions form .btn
  ) {
    width: 100%;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .admin-news-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .table-like > div {
    align-items: stretch;
    flex-direction: column;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .table-like :is(select, .btn) {
    width: 100%;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .admin-one-time-password code {
    display: block;
    white-space: normal;
  }
}

/* El menú principal cambia antes a formato hamburguesa para que ningún enlace
   quede cortado en tablet o escritorio angosto. */
@media (max-width: 1180px) {
  .menu-button {
    display: inline-grid;
  }

  .nav-links {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: none;
    left: 18px;
    padding: 12px;
    position: absolute;
    right: 18px;
    top: 72px;
  }

  .nav-links.open {
    display: grid;
  }

  body:not(.page-home) .nav-links {
    background: #11162a;
    border-color: rgba(255, 255, 255, 0.12);
    top: 68px;
  }

  body:not(.page-home) .nav-links :is(.nav-link, .btn) {
    width: 100%;
  }
}

/* Evento Empleo 3.3.4: menú Admin completo y desplazable en módulos internos.
   Evita que Postulaciones, Órdenes y pagos, Planes y Configuración muestren
   versiones recortadas del menú lateral. */
@media (min-width: 921px) {
  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav {
    max-height: calc(100vh - 112px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }
}

@media (max-width: 920px) {
  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav {
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
}

/* Evento Empleo 3.3.6: menú Admin desplegable en tablet y móvil.
   Sustituye la franja horizontal desplazable por un control compacto y una
   lista vertical, sin alterar el menú lateral de escritorio. */
.admin-nav-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.admin-nav-brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: 0;
}

.admin-nav-toggle {
  display: none;
}

.admin-nav-links {
  display: contents;
}

@media (max-width: 920px) {
  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav {
    display: block;
    max-height: none;
    overflow: visible;
    padding: 10px;
    white-space: normal;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav .admin-nav-head {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav.has-admin-nav-toggle .admin-nav-toggle {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 9px 12px;
    white-space: nowrap;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav .admin-nav-toggle:hover,
  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav .admin-nav-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.14);
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav .admin-nav-links {
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 10px;
    width: 100%;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav.has-admin-nav-toggle .admin-nav-links {
    display: none;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav.has-admin-nav-toggle.is-open .admin-nav-links {
    display: grid;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav .admin-nav-links a {
    display: block;
    min-height: 44px;
    padding: 11px 12px;
    white-space: normal;
    width: 100%;
  }
}

@media (min-width: 621px) and (max-width: 920px) {
  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav .admin-nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav .admin-nav-head {
    align-items: stretch;
    flex-direction: column;
  }

  body:is([class^="page-admin"], .page-configuracion, .page-configuracion_correo, .page-configuracion_mensajes) .dashboard-nav .admin-nav-toggle {
    justify-content: space-between;
    width: 100%;
  }
}

