:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-strong: #eef3ea;
  --text: #17211b;
  --muted: #657065;
  --line: #dfe6da;
  --brand: #0d6b4f;
  --brand-strong: #094935;
  --accent: #f0b429;
  --ink: #112820;
  --danger: #a4423a;
  --shadow: 0 18px 50px rgba(20, 45, 32, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Adaptación PHP/XAMPP: mantiene el CSS original React/Vite y permite que enlaces
   rendericen con la misma apariencia de botones/navegación sin cambiar la identidad visual. */
a {
  color: inherit;
  text-decoration: none;
}

/* Respeta atributos hidden también en componentes con display:flex/grid. */
[hidden] {
  display: none !important;
}

.nav-links a,
.site-footer a,
.dashboard-nav a {
  text-decoration: none;
}

.dashboard-nav a {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  padding: 11px 12px;
  text-align: left;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid label {
  color: var(--text);
  display: grid;
  font-weight: 800;
  gap: 7px;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.inline select,
.access-card select {
  background: #f9fbf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 42px;
  padding: 10px 12px;
}

.form-grid textarea {
  min-height: 130px;
  resize: vertical;
}

.form-grid label .field-help,
.settings-form-grid label .field-help {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.access-grid,
.company-grid,
.news-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.access-card,
.company-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: 22px;
}

.company-card {
  align-items: start;
  grid-template-columns: 56px minmax(0, 1fr);
}

.company-card > span,
.company-card > h3,
.company-card > p,
.company-card > .tag-list {
  grid-column: 2;
}

.company-logo {
  align-items: center;
  background: var(--brand);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.tag-list a {
  background: var(--surface-strong);
  border-radius: 999px;
  color: var(--brand-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  margin: 4px 4px 0 0;
  padding: 6px 8px;
}

.profile {
  align-items: center;
  display: flex;
  gap: 16px;
}

.profile img,
.avatar {
  border-radius: 999px;
  height: 88px;
  object-fit: cover;
  width: 88px;
}

.avatar {
  align-items: center;
  background: var(--surface-strong);
  color: var(--brand);
  display: grid;
  font-size: 26px;
  font-weight: 900;
  place-items: center;
}

.inline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .form-grid,
  .access-grid,
  .company-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  min-height: 100vh;
}

button,
textarea,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  align-items: center;
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--text);
  display: flex;
  gap: 12px;
  padding: 0;
  text-align: left;
}

.brand-mark {
  align-items: center;
  background: var(--brand);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand small {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav-link,
.site-footer button,
.dashboard-nav button,
.text-button,
.back-link {
  background: transparent;
  border: 0;
  color: var(--muted);
}

.nav-link {
  border-radius: 8px;
  padding: 10px 12px;
}

.nav-link:hover,
.nav-link.active {
  background: var(--surface-strong);
  color: var(--brand-strong);
}

.menu-button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: none;
  height: 40px;
  place-items: center;
  width: 40px;
}

.btn {
  align-items: center;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  text-decoration: none;
}

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

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

.btn-soft {
  background: var(--surface-strong);
  color: var(--brand-strong);
}

.btn-danger {
  background: #f7e7e5;
  color: var(--danger);
}

.full {
  width: 100%;
}

main {
  flex: 1 0 auto;
  padding: 0 clamp(18px, 4vw, 56px) 56px;
}

.hero-section {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: 1180px;
  min-height: auto;
  padding: 72px 0 40px;
}

.hero-copy {
  width: 100%;
}

.hero-copy h1,
.page-heading h1 {
  font-size: clamp(44px, 7vw, 84px);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 12px 0 18px;
}

.hero-copy p,
.page-heading p,
.lead {
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.5;
  margin: 0;
  max-width: 760px;
}

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-choice-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
  max-width: none;
  width: 100%;
}

.hero-action-card {
  align-content: start;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 45px rgba(20, 45, 32, 0.08);
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 22px;
}

.hero-action-card h2 {
  color: var(--text);
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.hero-action-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
  margin: 0;
  max-width: none;
}

.hero-card-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2px;
}

.hero-card-actions .btn {
  justify-content: center;
  min-height: 44px;
  text-align: center;
  width: 100%;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  width: 100%;
}

.hero-panel .metric-link {
  background: linear-gradient(135deg, #ffffff, #f6faf2);
  align-content: center;
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 24px 28px;
  text-align: center;
  text-decoration: none;
}

.hero-panel .metric-link:hover {
  background: #f1f8ee;
}

.hero-panel strong {
  color: var(--brand-strong);
  display: block;
  font-size: 42px;
}

.hero-panel span {
  color: var(--muted);
}

@media (max-width: 720px) {
  .hero-choice-grid,
  .hero-card-actions {
    grid-template-columns: 1fr;
  }

  .create-job-panel > .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero-action-card {
    padding: 18px;
  }

  .hero-panel .metric-link {
    padding: 18px 10px;
  }

  .hero-panel strong {
    font-size: 34px;
  }

  .hero-panel span {
    font-size: 13px;
    line-height: 1.25;
  }
}

.section-grid,
.content-band,
.two-column,
.page-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 48px 0;
}

.section-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-header h2,
.detail-main h1,
.dashboard-content h1 {
  margin: 0;
}

.text-button,
.back-link {
  align-items: center;
  color: var(--brand);
  display: inline-flex;
  font-weight: 800;
  gap: 6px;
  padding: 0;
}

.job-grid,
.dashboard-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.job-card,
.metric-card,
.profile-card,
.panel-section,
.detail-main,
.detail-aside,
.company-row,
.news-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
  padding: 22px;
}

.job-card.wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.notification-card {
  scroll-margin-top: 110px;
}

.notification-hidden {
  display: none !important;
}

.notification-card-unread {
  background: #fbfef8;
  border-color: #cfe5bf;
}

.notification-card-unread h3 {
  color: var(--text);
  font-weight: 900;
}

.notification-card-read {
  background: var(--surface);
}

.notification-card-read h3,
.notification-card-read p,
.notification-card-read small {
  font-weight: 500;
}

.notification-status-unread {
  background: #e7f3ed;
  color: var(--brand-strong);
}

.notification-status-read {
  background: var(--surface-strong);
  color: var(--muted);
}

.notification-mark-read-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.job-card h3,
.company-row h3,
.news-row h3 {
  margin: 8px 0 6px;
}

.job-card p,
.company-row p,
.news-row p,
.panel-section p,
.detail-aside p {
  color: var(--muted);
  margin: 0;
}

.status-pill {
  background: #e7f3ed;
  border-radius: 999px;
  color: var(--brand-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.job-meta {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-meta span {
  align-items: center;
  display: flex;
  gap: 8px;
}

.content-band {
  background: #eef3ea;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.category-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-chip {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 54px;
  padding: 12px;
  text-align: left;
}

.category-chip:hover {
  border-color: var(--brand);
}

.two-column {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
}

.stack {
  display: grid;
  gap: 12px;
}

.company-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: auto 1fr auto;
  padding: 16px;
}

.logo-tile {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: flex;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.company-row span {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.news-row {
  padding: 18px;
}

.news-row span {
  color: var(--accent);
  font-weight: 800;
}

.admin-news-form {
  margin-bottom: 18px;
}

.admin-news-row {
  display: grid;
  gap: 12px;
}

.admin-news-row details {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.admin-news-row summary {
  cursor: pointer;
  font-weight: 800;
}

.admin-news-row details[open] summary {
  margin-bottom: 12px;
}

.admin-news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-news-actions .inline {
  margin: 0;
}

.access-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.access-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: 22px;
}

.access-card svg {
  color: var(--brand);
}

.access-card h2 {
  margin: 0;
}

.access-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.page-heading {
  margin-bottom: 24px;
}

.page-heading.compact h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.page-heading.compact p {
  font-size: 18px;
}

.search-strip {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  padding: 12px;
}

.filter-field {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  min-height: 44px;
  padding: 10px 12px;
}

.filter-field input,
.filter-field select {
  background: transparent;
  border: 0;
  color: var(--text);
  font-weight: 700;
  min-width: 0;
  outline: 0;
}

.input-like {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
}

.job-list {
  display: grid;
  gap: 14px;
}

.jobs-load-more,
.news-load-more {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 18px;
}

.jobs-load-more[hidden],
.news-load-more[hidden] {
  display: none;
}

.jobs-load-more p,
.news-load-more p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.detail-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.detail-main,
.detail-aside {
  padding: 26px;
}

.detail-main h1 {
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: 0;
  line-height: 1;
  margin-top: 14px;
}

.detail-aside {
  align-self: start;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 92px;
}

.detail-aside h2 {
  margin: 0;
}

.detail-aside small {
  color: var(--muted);
  line-height: 1.5;
}

.info-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0;
}

.info-grid div {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.info-grid span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.detail-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.detail-block li {
  margin: 8px 0;
}

.dashboard {
  display: grid;
  gap: 24px;
  grid-template-columns: 260px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 42px 0;
}

.dashboard-nav {
  align-self: start;
  background: var(--ink);
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 6px;
  padding: 18px;
  position: sticky;
  top: 92px;
}

.dashboard-nav div {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.dashboard-nav button {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  padding: 11px 12px;
  text-align: left;
}

.dashboard-nav button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.dashboard-nav button.active {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.dashboard-content {
  display: grid;
  gap: 18px;
}

.active-section-note {
  align-items: center;
  background: #fff8e4;
  border: 1px solid #f2d58b;
  border-radius: 8px;
  color: #5d4610;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 14px;
}

.active-section-note span {
  color: #7a6124;
}

.profile-card {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px;
}

.profile-card h2 {
  margin: 4px 0 8px;
}

.profile-card p {
  color: var(--muted);
  margin: 0;
}

.create-job-panel {
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
}

.create-job-plan-note,
.create-job-form {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
  width: 100%;
}

.create-job-form {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.job-form-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.5vw, 26px);
}

.job-form-section-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  padding-bottom: 14px;
}

.job-form-section-heading h2 {
  font-size: 1.18rem;
  margin: 5px 0 0;
}

.job-form-grid {
  display: grid;
  gap: 18px;
}

.job-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.job-form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.job-form-grid-1 {
  grid-template-columns: minmax(0, 1fr);
}

.create-job-form label {
  color: var(--text);
  display: grid;
  font-weight: 700;
  gap: 8px;
}

.create-job-form input,
.create-job-form select,
.create-job-form textarea {
  background: #f9fbf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  margin: 0;
  min-height: 46px;
  padding: 11px 13px;
  width: 100%;
}

.create-job-form input:focus,
.create-job-form select:focus,
.create-job-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(45, 125, 70, 0.12);
  outline: none;
}

.create-job-form textarea {
  line-height: 1.55;
  min-height: 140px;
  resize: vertical;
}

.job-form-span-all {
  grid-column: 1 / -1;
}

.create-job-form-actions {
  display: flex;
  justify-content: flex-end;
}

.create-job-submit {
  min-width: 250px;
}

.candidate-filter-panel,
.candidate-search-context,
.candidate-search-locked,
.candidate-search-profile {
  margin-bottom: 20px;
}

.candidate-filter-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.candidate-filter-form label,
.candidate-search-context label {
  color: var(--text);
  display: grid;
  font-weight: 700;
  gap: 7px;
}

.candidate-filter-form input,
.candidate-filter-form select,
.candidate-search-context select {
  background: #f9fbf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.candidate-filter-form .candidate-filter-check {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  min-height: 44px;
  padding: 10px 12px;
}

.candidate-filter-check input {
  min-height: auto;
  width: auto;
}

.candidate-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
}

.locked-filter-section {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}

.locked-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.locked-filter-chip {
  align-items: center;
  background: #f1f3ef;
  border: 1px dashed #aeb7aa;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 11px;
  text-decoration: none;
}

.locked-filter-chip:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.plan-filter-lock-message {
  align-items: flex-start;
  margin-bottom: 20px;
}

.candidate-search-context {
  max-width: 760px;
}

.candidate-search-locked {
  max-width: 860px;
}

.candidate-search-results {
  margin-top: 20px;
}

.admin-cv-summary {
  margin: 18px 0;
}

.admin-cv-summary-text {
  line-height: 1.7;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.admin-one-time-password {
  margin: 14px 0;
}

.admin-one-time-password code {
  font-size: 1rem;
  overflow-wrap: anywhere;
  user-select: all;
}

.admin-danger-zone {
  border-style: dashed;
}

.admin-delete-confirmation summary {
  list-style: none;
  width: fit-content;
}

.admin-delete-confirmation summary::-webkit-details-marker {
  display: none;
}

.admin-delete-confirmation-body {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.create-job-panel > .dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.create-job-panel > .dashboard-grid > .profile-card {
  align-items: stretch;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
}

.create-job-panel > .dashboard-grid > .profile-card > .btn {
  justify-self: start;
}

.create-job-panel .tag-list {
  align-content: start;
  align-self: end;
}

.quote-modal {
  border: 0;
  max-width: min(720px, calc(100vw - 32px));
  width: 100%;
}

.quote-modal::backdrop {
  background: rgba(15, 31, 23, 0.36);
}

.quote-modal .page-heading {
  margin-bottom: 6px;
}

.quote-contact-note {
  display: block;
  line-height: 1.45;
}

.quote-contact-note strong {
  white-space: nowrap;
}

.quote-modal .form-actions {
  margin-top: 14px;
}

.quote-description-field {
  display: grid;
  gap: 8px;
}

.quote-description-field span {
  font-weight: 800;
}

.quote-description-field textarea {
  margin-bottom: 0;
}

.candidate-avatar {
  align-items: center;
  background: var(--surface-strong);
  border-radius: 8px;
  display: flex;
  height: 72px;
  justify-content: center;
  margin: 8px 0;
  overflow: hidden;
  width: 72px;
}

.candidate-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.candidate-avatar span {
  color: var(--brand-strong);
  font-weight: 900;
}

.profile-warning {
  background: #fff8e4;
  border: 1px solid #f2d58b;
  border-radius: 8px;
  color: #5d4610;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.metric-card {
  display: grid;
  gap: 7px;
  padding: 18px;
}

.metric-card svg {
  color: var(--brand);
}

.metric-card strong {
  font-size: 30px;
}

.metric-card span {
  color: var(--muted);
}

.panel-section {
  padding: 22px;
}

.panel-section h3 {
  margin: 0 0 14px;
}

textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: block;
  line-height: 1.5;
  margin-bottom: 14px;
  min-height: 150px;
  padding: 14px;
  resize: vertical;
  width: 100%;
}

.job-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.job-form label {
  color: var(--text);
  display: grid;
  font-weight: 700;
  gap: 8px;
}

.job-form input,
.job-form select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.job-form textarea {
  margin-bottom: 0;
  min-height: 110px;
}

.span-2 {
  grid-column: 1 / -1;
}

.form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
}

.form-actions span,
.form-message {
  color: var(--muted);
}

.form-message {
  background: var(--surface-strong);
  border-radius: 8px;
  margin: 14px 0 0;
  padding: 12px 14px;
}

.review-list {
  display: grid;
  gap: 12px;
}

.application-list,
.applicant-list {
  display: grid;
  gap: 12px;
}

.application-card,
.applicant-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.application-card {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.application-card h4,
.applicant-card h4 {
  margin: 10px 0 6px;
}

.application-card p,
.applicant-card p {
  color: var(--muted);
  margin: 0;
}

.applicant-card {
  display: grid;
  gap: 14px;
}

.applicant-head {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 220px;
}

.applicant-head label {
  display: grid;
  font-weight: 700;
  gap: 8px;
}

.applicant-head select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 9px 10px;
}

.applicant-contact {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.applicant-contact span {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.cv-preview {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.cv-preview p {
  line-height: 1.5;
  margin-top: 8px;
}

.match-card {
  background: #f4fbf6;
  border: 1px solid #b9dfc5;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.match-card div {
  align-items: baseline;
  display: flex;
  gap: 10px;
}

.match-card strong {
  color: var(--brand-strong);
  font-size: 30px;
}

.match-card span,
.match-inline {
  color: var(--brand-strong);
  font-weight: 800;
}

.match-card ul {
  color: var(--muted);
  margin: 0;
  padding-left: 18px;
}

.match-card li {
  margin: 5px 0;
}

.match-inline {
  background: #e7f3ed;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  margin-top: 10px;
  padding: 6px 10px;
}

.match-inline.low {
  background: #fff3d7;
  color: #72510a;
}

.review-card {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px;
}

.review-card h4 {
  margin: 10px 0 6px;
}

.review-card p {
  color: var(--muted);
  margin: 0;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.empty-state {
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  padding: 18px;
}

.empty-state strong {
  color: var(--text);
}

.notification-empty-state {
  text-align: left;
}

.table-like {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.table-like div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px;
}

.table-like div:last-child {
  border-bottom: 0;
}

.table-like strong {
  color: var(--brand);
}

.admin-job-list,
.email-log,
.news-grid {
  display: grid;
  gap: 12px;
}

.admin-job-row {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 260px;
  padding: 14px;
}

.admin-job-row div,
.admin-job-row label {
  display: grid;
  gap: 6px;
}

.admin-job-row span {
  color: var(--muted);
}

.admin-job-row label {
  font-weight: 700;
}

.admin-job-row select,
.inline-form input,
.table-like select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 10px;
}

.inline-form {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 14px;
}

.admin-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-chip-list span {
  align-items: center;
  background: var(--surface-strong);
  border-radius: 999px;
  color: var(--brand-strong);
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  padding: 7px 10px;
}

.admin-category-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
  width: 100%;
}

.admin-category-card > div:first-child {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.disabled-chip {
  opacity: 0.45;
}

.choice-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.choice-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 6px;
  padding: 16px;
  text-align: left;
}

.choice-card.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.choice-card span {
  color: var(--muted);
}

.company-list {
  display: grid;
  gap: 14px;
}

.company-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 18px;
}

.admin-chip-list button {
  background: transparent;
  border: 0;
  color: var(--danger);
  font-weight: 900;
  padding: 0;
}

.spaced-table {
  margin-top: 16px;
}

.editable-news-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.editable-news-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
}

.editable-news-card label {
  display: grid;
  font-weight: 700;
  gap: 8px;
}

.editable-news-card input,
.editable-news-card select,
.editable-news-card textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 42px;
  padding: 9px 10px;
}

.editable-news-card textarea {
  margin-bottom: 0;
  min-height: 100px;
}

.email-log article {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 14px;
}

.email-log span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.email-log p,
.email-log small,
.news-row small {
  color: var(--muted);
  margin: 0;
}

.placeholder {
  min-height: 58vh;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: white;
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  margin: 8px 0 0;
  max-width: 660px;
}

.site-footer div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer button {
  color: rgba(255, 255, 255, 0.82);
}

.cv-document {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  padding: 22px;
}

.cv-grid,
.company-detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cv-grid div,
.company-detail-grid span {
  background: var(--muted);
  border-radius: 8px;
  padding: 12px;
}

.cv-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.cv-grid dd {
  margin: 4px 0 0;
}

.cv-text-block {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  white-space: pre-wrap;
}

.state-banner {
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  margin: 14px 0 18px;
  padding: 14px 16px;
}

.state-pendiente-de-revision,
.status-pendiente-de-revision {
  background: #fff7d6;
  color: #8a6200;
}

.state-observada,
.status-observada {
  background: #ffead6;
  color: #9b4a00;
}

.state-rechazada,
.state-suspendida,
.status-rechazada,
.status-suspendida {
  background: #ffe1e1;
  color: #9f1d1d;
}

.status-aprobada {
  background: #def7e8;
  color: #126b37;
}

.admin-company-list {
  display: grid;
  gap: 14px;
}

.admin-company-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.admin-company-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.company-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.admin-note {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.category-admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list small {
  background: var(--muted);
  border-radius: 999px;
  padding: 6px 9px;
}

.settings-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid p,
.settings-grid label {
  background: var(--surface-strong);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
}

@media (max-width: 920px) {
  .menu-button {
    display: inline-grid;
  }

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

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

  .hero-section,
  .two-column,
  .detail-layout,
  .access-grid,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .job-grid,
  .dashboard-grid,
  .category-grid,
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .job-card.wide,
  .search-strip {
    grid-template-columns: 1fr;
  }

  .detail-aside,
  .dashboard-nav {
    position: static;
  }
}

/* Planes por aviso: componentes acotados, sin alterar tarjetas o grillas globales. */
.plan-selector {
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
}

.plan-selector legend {
  font-weight: 900;
  padding: 0 8px;
}

.plan-selector > p {
  color: var(--muted);
  margin: 0;
}

.plan-choice-card {
  cursor: pointer;
}

.plan-choice-card input {
  accent-color: var(--brand);
  height: 18px;
  margin: 0;
  width: 18px;
}

.plan-choice-card:has(input:checked) {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.plan-choice-card:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.plan-card {
  align-items: stretch;
  flex-direction: column;
  gap: 18px;
}

.plan-first-grid .plan-card {
  height: 100%;
}

.plan-first-grid .plan-card-primary-action {
  margin-top: auto;
  min-height: 44px;
  width: 100%;
}

.plan-card h2 {
  margin: 6px 0;
}

.plan-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.plan-card li {
  margin: 7px 0;
}

.plan-team-request-card .team-size-options a {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.plan-price {
  color: var(--brand-strong);
  display: block;
  font-size: 1.55rem;
  margin-bottom: 10px;
}

.plan-first-grid .btn[disabled] {
  cursor: not-allowed;
  color: white;
  opacity: 0.72;
}

.create-job-panel > .plan-first-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 920px) {
  .create-job-panel > .plan-first-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-form-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .candidate-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .create-job-panel > .plan-first-grid {
    grid-template-columns: 1fr;
  }

  .job-form-grid-3,
  .job-form-grid-2,
  .candidate-filter-form {
    grid-template-columns: 1fr;
  }

  .create-job-plan-note {
    align-items: stretch;
    flex-direction: column;
  }

  .create-job-plan-note .btn,
  .create-job-submit {
    width: 100%;
  }

  .candidate-filter-actions,
  .plan-filter-lock-message {
    align-items: stretch;
    flex-direction: column;
  }

  .candidate-filter-actions .btn,
  .plan-filter-lock-message .btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand small {
    display: none;
  }

  .hero-copy h1,
  .page-heading h1 {
    font-size: 44px;
  }

  .hero-actions,
  .profile-card,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .job-grid,
  .dashboard-grid,
  .category-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .content-band,
  .detail-main,
  .detail-aside {
    padding: 18px;
  }

  .job-form,
  .review-card,
  .applicant-head,
  .admin-company-head,
  .category-admin-grid,
  .cv-grid,
  .company-detail-grid,
  .settings-grid,
  .admin-job-row,
  .inline-form,
  .editable-news-card,
  .choice-grid,
  .company-card {
    grid-template-columns: 1fr;
  }

  .review-actions,
  .application-card {
    align-items: stretch;
    flex-direction: column;
  }

  .review-actions {
    justify-content: stretch;
  }
}

/* Overrides finales para la versión PHP/XAMPP. */
.dashboard-nav a {
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  padding: 11px 12px;
  text-align: left;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}

.company-grid,
.access-grid,
.news-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.company-card,
.access-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: 22px;
}

.company-card {
  align-items: start;
  grid-template-columns: 56px minmax(0, 1fr);
}

.company-card > span,
.company-card > h3,
.company-card > p,
.company-card > .tag-list {
  grid-column: 2;
}

@media (max-width: 760px) {
  .company-grid,
  .access-grid,
  .news-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Evento Empleo 1.6: Home landing recuperada desde la referencia React/Vite */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.landing-section,
section[id],
footer[id] {
  scroll-margin-top: 92px;
}


.section-header-split {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.section-header-split p {
  color: var(--muted);
  margin: 6px 0 0;
  max-width: 760px;
}

.home-search {
  align-items: end;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 28px;
  max-width: none;
  padding: 12px;
  width: 100%;
}

.home-search label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  text-transform: uppercase;
}

.home-search input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  min-height: 46px;
  outline: 0;
  padding: 11px 12px;
  text-transform: none;
}

.home-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 107, 79, 0.12);
}

.home-job-carousel {
  display: block;
  position: relative;
  width: 100%;
}

.home-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  width: 100%;
}

.home-job-track {
  align-items: stretch;
  display: flex;
  flex-direction: row;
  gap: 16px;
  min-width: 100%;
}

.home-carousel-card {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 280px;
  scroll-snap-align: start;
}

.carousel-controls {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
  width: 100%;
}

.carousel-arrow {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: var(--brand-strong);
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 30px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  line-height: 1;
  min-height: 0;
  padding: 0;
  width: 44px;
}

.carousel-arrow:hover {
  background: var(--brand);
  color: #fff;
}

.carousel-arrow:disabled {
  cursor: default;
  opacity: 0.35;
}

.carousel-dots {
  align-items: center;
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 0;
  min-height: 44px;
}

.carousel-dots button {
  background: #cbd8ce;
  border: 0;
  border-radius: 999px;
  height: 8px;
  padding: 0;
  width: 8px;
}

.carousel-dots button.is-active {
  background: var(--brand);
  width: 24px;
}

.region-search-band,
.categories-band {
  background: linear-gradient(135deg, #eef7f0 0%, #fff 100%);
}

.region-search-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  margin: 0 0 18px;
}

.region-search-form .filter-field {
  background: #fff;
}

.region-chip-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.region-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 58px;
  padding: 13px 14px;
  text-decoration: none;
}

.region-chip span {
  color: var(--text);
  font-weight: 900;
}

.region-chip small {
  background: #eef3ea;
  border-radius: 999px;
  color: var(--brand-strong);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
}

.region-chip.has-jobs {
  border-color: rgba(13, 107, 79, 0.32);
}

.region-chip.has-jobs:hover {
  background: #f7fbf8;
  transform: translateY(-1px);
}

.region-chip.is-empty {
  opacity: 0.78;
}

.category-accordion-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-accordion {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  overflow: hidden;
}

.category-accordion[open] {
  border-color: rgba(15, 118, 86, 0.34);
}

.category-accordion summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  min-height: 64px;
  padding: 16px 18px;
}

.category-accordion summary::-webkit-details-marker {
  display: none;
}

.category-accordion summary::after {
  color: var(--brand-strong);
  content: "▾";
  font-size: 14px;
  margin-left: 4px;
  transition: transform 0.18s ease;
}

.category-accordion[open] summary::after {
  transform: rotate(180deg);
}

.category-title {
  color: var(--text);
  font-weight: 900;
  line-height: 1.25;
}

.category-badge {
  align-items: center;
  background: #e9f6f0;
  border: 1px solid rgba(15, 118, 86, 0.18);
  border-radius: 999px;
  color: var(--brand-strong);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  min-width: 34px;
  padding: 0 10px;
}

.category-accordion.is-empty .category-badge {
  background: #f3f4f0;
  color: var(--muted);
}

.category-accordion.has-jobs summary {
  background: linear-gradient(90deg, rgba(15, 118, 86, 0.08), rgba(255, 255, 255, 0));
}

.subcategory-panel {
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
}

.subcategory-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.subcategory-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subcategory-pill {
  align-items: center;
  background: #f6f7f4;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  gap: 10px;
  padding: 9px 12px;
  text-decoration: none;
}

.subcategory-pill small {
  align-items: center;
  background: rgba(16, 24, 40, 0.06);
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  min-width: 22px;
  padding: 2px 7px;
}

.subcategory-pill.has-jobs {
  background: #0f7656;
  border-color: #0f7656;
  color: #fff;
  font-weight: 850;
}

.subcategory-pill.has-jobs:hover {
  background: #095c43;
  transform: translateY(-1px);
}

.subcategory-pill.has-jobs small {
  background: rgba(255,255,255,0.20);
  color: #fff;
}

.job-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.job-tags span,
.detail-tags span {
  background: #eef3ea;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 850;
  padding: 7px 10px;
}

.filter-actions {
  align-items: end;
  display: flex;
  gap: 10px;
}

.jobs-results {
  align-items: stretch;
}

.job-result-card {
  display: flex;
  flex-direction: column;
}

.job-result-card .btn {
  margin-top: auto;
}

.cta-card,
.process-card,
.final-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.cta-card {
  align-self: stretch;
  display: grid;
  gap: 16px;
}

.cta-card h2,
.final-cta h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  margin: 0;
}

.cta-card p,
.process-card p,
.final-cta p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.candidate-band {
  background: linear-gradient(135deg, #112820 0%, #0d6b4f 100%);
  color: #fff;
}

.candidate-band .eyebrow,
.candidate-band .text-button,
.candidate-band p {
  color: rgba(255,255,255,0.78);
}

.process-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card strong {
  align-items: center;
  background: var(--brand);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.process-card h3 {
  margin: 14px 0 8px;
}

.candidate-band .process-card {
  color: var(--text);
}

.candidate-band .process-card h3 {
  color: var(--brand-strong);
}

.candidate-band .process-card p {
  color: var(--muted);
}

.final-cta {
  align-items: start;
  display: grid;
  margin: 0 auto;
  max-width: 1180px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .section-header-split {
    display: grid;
  }

  .home-search,
  .process-grid,
  .region-search-form,
  .region-chip-grid,
  .category-accordion-grid {
    grid-template-columns: 1fr;
  }

  .carousel-controls {
    margin-top: 6px;
  }

  .home-carousel-card {
    flex-basis: min(86vw, 360px);
  }
}

@media (max-width: 1100px) and (min-width: 921px) {
  .home-carousel-card {
    flex-basis: calc((100% - 16px) / 2);
  }

  .region-chip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Evento Empleo 1.6.1: fotos, logos y configuración ordenada */
.profile-card-split {
  align-items: flex-start;
}

.profile-card-split .settings-grid {
  min-width: min(420px, 100%);
}

.compact-profile-data {
  flex: 0 1 460px;
}

.muted-note {
  color: var(--muted);
  display: inline-block;
  font-weight: 700;
  margin-top: 8px;
}

.profile-logo,
.profile-media-preview,
.card-media-small,
.company-logo,
.logo-tile {
  overflow: hidden;
}

.profile-logo,
.profile-media-preview {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--brand-strong);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 900;
  justify-content: center;
}

.profile-logo {
  height: 88px;
  width: 88px;
}

.profile-logo img,
.profile-media-preview img,
.card-media-small img,
.company-logo img,
.logo-tile img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-media-preview {
  font-size: 30px;
  height: 112px;
  width: 112px;
}

.logo-preview {
  border-radius: 20px;
}

.logo-preview img {
  background: #fff;
  object-fit: contain;
  padding: 8px;
}

.logo-preview[hidden] {
  display: none;
}

.card-media-small {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--brand-strong);
  display: inline-flex;
  flex: 0 0 52px;
  font-weight: 900;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.candidate-media {
  border-radius: 999px;
}

.card-brand-row {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.media-job-card {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.detail-company-head {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.detail-company-head h2 {
  margin: 0 0 4px;
}

.media-admin-card {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.admin-profile-card {
  align-items: flex-start;
  display: grid;
  gap: 16px;
}

.profile-settings-form {
  display: grid;
  gap: 16px;
}

.settings-panel-section .section-header {
  margin-bottom: 14px;
}

.settings-panel-section .section-header p {
  margin-top: 6px;
}

.settings-card {
  background: #f9fbf7;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.settings-card h4 {
  margin: 0;
}

.settings-card p {
  color: var(--muted);
  margin: 0;
}

.profile-media-card {
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr);
}

.settings-form-grid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-form-grid label,
.file-field,
.visibility-field {
  color: var(--text);
  display: grid;
  font-weight: 800;
  gap: 7px;
  min-width: 0;
}

.settings-form-grid input,
.settings-form-grid select,
.settings-form-grid textarea,
.file-field input,
.visibility-field input,
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
}

.settings-form-grid input,
.settings-form-grid select,
.settings-form-grid textarea,
.file-field input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  min-height: 44px;
  padding: 10px 12px;
}

.settings-form-grid textarea {
  min-height: 150px;
  resize: vertical;
}

.candidate-notification-settings {
  align-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.candidate-notification-settings > strong,
.candidate-notification-channel > strong {
  color: var(--text);
  font-weight: 900;
}

.candidate-notification-settings label {
  align-items: center;
  color: var(--text);
  display: flex;
  font-weight: 700;
  gap: 9px;
  line-height: 1.35;
}

.candidate-notification-settings input[type="checkbox"] {
  accent-color: var(--brand-strong);
  min-height: auto;
  width: auto;
}

.candidate-notification-channel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  margin-top: 2px;
  padding-top: 10px;
}

textarea.auto-resize,
#cv-editor textarea[name="cv_resumen"],
#cv-editor textarea[name="cv_texto"],
#cv-editor textarea {
  min-height: 160px;
  overflow: hidden;
  resize: none;
}

.candidate-category-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.candidate-category-summary small {
  color: var(--muted);
  display: block;
  font-weight: 600;
  margin-top: 4px;
}

.candidate-category-summary p {
  color: var(--muted);
  margin: 6px 0 0;
}

.candidate-category-summary > .btn {
  justify-self: start;
}

/* Evento Empleo 2.3.8: orden visual del registro de candidato.
   Mantiene el diseño de dos columnas, pero evita campos descuadrados. */
.candidate-registration-grid {
  align-items: start;
}

.candidate-registration-grid > label,
.candidate-registration-grid > .candidate-category-summary,
.candidate-registration-grid > .candidate-photo-section {
  min-width: 0;
}

.candidate-registration-grid > .full,
.candidate-registration-grid > .candidate-category-summary,
.candidate-registration-grid > .candidate-photo-section,
.candidate-registration-grid > .btn {
  grid-column: 1 / -1;
}

.candidate-registration-grid > .btn {
  justify-self: start;
}

.candidate-registration-grid textarea[name="cv_texto"] {
  min-height: 180px;
}

.candidate-photo-section {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto minmax(260px, 0.85fr);
  padding: 12px;
}

.candidate-photo-section > label {
  color: var(--text);
  display: grid;
  font-weight: 800;
  gap: 7px;
}

.candidate-photo-section .visibility-field {
  height: 100%;
}

.candidate-photo-section .profile-media-preview {
  justify-self: center;
}

.candidate-category-modal {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(15, 31, 23, 0.22);
  max-width: min(680px, calc(100vw - 32px));
  padding: 0;
  width: 100%;
}

.candidate-category-modal::backdrop {
  background: rgba(15, 31, 23, 0.36);
}

.candidate-category-modal-box {
  background: var(--surface);
  display: grid;
  gap: 14px;
  padding: 20px;
}

.candidate-category-modal .section-header {
  margin: 0;
}

.candidate-category-modal-list {
  display: grid;
  gap: 8px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 4px;
}

.candidate-category-modal-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.candidate-category-modal-row span {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  font-weight: 800;
}

.candidate-category-modal-row span:last-child {
  color: var(--brand-strong);
}

.candidate-category-modal input[type="checkbox"],
.candidate-category-modal input[type="radio"] {
  accent-color: var(--brand-strong);
  border: 1.5px solid var(--brand-strong);
  min-height: auto;
  opacity: 1;
  padding: 0;
  width: auto;
}

.candidate-category-modal input[type="checkbox"] {
  border-radius: 2px;
}

.candidate-category-modal input[type="radio"] {
  border-radius: 50%;
}

.segmented-toggle {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.segmented-toggle label {
  display: inline-flex;
  font-weight: 900;
}

.segmented-toggle input {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.segmented-toggle span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-strong);
  display: inline-flex;
  padding: 9px 13px;
}

.segmented-toggle input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.visibility-field {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 920px) {
  .profile-media-card,
  .settings-form-grid,
  .media-admin-card,
  .media-job-card {
    grid-template-columns: 1fr;
  }

  .card-brand-row,
  .detail-company-head {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .profile-card-split,
  .profile-media-card {
    align-items: stretch;
  }

  .profile-media-preview,
  .profile-logo {
    height: 86px;
    width: 86px;
  }

  .settings-actions .btn {
    width: 100%;
  }
}

/* Evento Empleo 1.8: ajustes finos de tarjetas con logo/foto y acciones de postulación.
   No cambia el flujo del empleador; solo ordena visualmente lo que ya existe. */
.job-card-main {
  min-width: 0;
}

.job-card-main h3,
.job-card-main p {
  overflow-wrap: anywhere;
}

.media-job-card {
  align-items: center;
  column-gap: 16px;
  display: grid;
  row-gap: 10px;
}

.candidate-job-card {
  grid-template-columns: 56px minmax(0, 1fr) auto;
}

.applicant-job-card {
  grid-template-columns: 56px minmax(220px, 1fr) auto minmax(300px, max-content);
}

.media-job-card .card-media-small {
  align-self: start;
  grid-column: auto;
  grid-row: auto;
  margin-top: 4px;
}

.candidate-job-card > .btn,
.applicant-job-card > .btn {
  white-space: nowrap;
}

.state-change-form {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-start;
  min-width: 0;
}

.state-change-form select {
  flex: 0 0 165px;
  max-width: 190px;
}

.state-change-form .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .applicant-job-card {
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }

  .applicant-job-card .state-change-form {
    grid-column: 2 / -1;
  }
}

@media (max-width: 920px) {
  .candidate-job-card,
  .applicant-job-card,
  .media-job-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .candidate-job-card > .btn,
  .applicant-job-card > .btn,
  .applicant-job-card .state-change-form {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .state-change-form {
    align-items: stretch;
    flex-direction: column;
  }

  .state-change-form select,
  .state-change-form .btn {
    max-width: none;
    width: 100%;
  }
}

.candidate-job-card > .status-pill {
  justify-self: start;
  white-space: nowrap;
}

.candidate-match-message {
  background: rgba(31, 138, 76, 0.1);
  border-color: rgba(31, 138, 76, 0.22);
  color: #1f6f44;
  line-height: 1.35;
  white-space: normal;
}

.candidate-match-high {
  justify-self: start;
  margin: 4px 0;
  width: fit-content;
}

@media (max-width: 920px) {
  .candidate-job-card > .status-pill {
    grid-column: 2 / -1;
  }
}

/* Evento Empleo 1.8.1: orden consistente logo + información en tarjetas.
   Corrige la precedencia de .job-card.wide para que el logo de empresa/candidato
   no ocupe la columna flexible ni desplace la leyenda. */
.job-card.wide.media-job-card {
  align-items: center;
  column-gap: 16px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto;
  row-gap: 10px;
}

.job-card.wide.candidate-job-card {
  grid-template-columns: 56px minmax(0, 1fr) auto;
}

.job-card.wide.applicant-job-card {
  grid-template-columns: 56px minmax(220px, 1fr) auto minmax(300px, max-content);
}

.job-card.wide.media-job-card .card-media-small {
  align-self: center;
  grid-column: 1;
  justify-self: start;
  margin-top: 0;
}

.job-card.wide.media-job-card .job-card-main,
.job-card.wide.media-job-card > div:not(.card-media-small):not(.job-meta) {
  grid-column: 2;
  min-width: 0;
}

.job-card.wide.media-job-card > .status-pill,
.job-card.wide.media-job-card > .job-meta,
.job-card.wide.media-job-card > .btn,
.job-card.wide.media-job-card > .state-change-form {
  justify-self: end;
}

.job-card.wide.candidate-job-card > .status-pill,
.job-card.wide.candidate-job-card > .btn {
  grid-column: 3;
}

.job-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.job-card.wide.media-job-card > div.job-card-actions.job-card-actions {
  grid-column: auto;
  justify-content: flex-end;
  justify-self: end;
}

.job-card.wide.candidate-job-card > div.job-card-actions.job-card-actions {
  grid-column: 3;
}

.job-card-actions .inline,
.job-card-actions form {
  margin: 0;
}

@media (max-width: 1180px) {
  .job-card.wide.applicant-job-card {
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }

  .job-card.wide.applicant-job-card .state-change-form {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 920px) {
  .job-card.wide.media-job-card,
  .job-card.wide.candidate-job-card,
  .job-card.wide.applicant-job-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .job-card.wide.media-job-card > .status-pill,
  .job-card.wide.media-job-card > .job-meta,
  .job-card.wide.media-job-card > .btn,
  .job-card.wide.media-job-card > .state-change-form,
  .job-card.wide.media-job-card > div.job-card-actions.job-card-actions,
  .job-card.wide.candidate-job-card > .status-pill,
  .job-card.wide.candidate-job-card > .btn,
  .job-card.wide.candidate-job-card > div.job-card-actions.job-card-actions,
  .job-card.wide.applicant-job-card > .btn,
  .job-card.wide.applicant-job-card .state-change-form {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .job-card.wide.media-job-card > div.job-card-actions.job-card-actions {
    justify-content: flex-start;
  }
}


/* Evento Empleo 1.6.2: dashboard limpio del empleador, sin tocar home/carrusel público */
.employer-dashboard .profile-card-split {
  align-items: flex-start;
}

.employer-cta-card,
.employer-section-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.employer-section-header {
  margin-bottom: 16px;
}

.employer-section-header h3,
.employer-cta-card h3 {
  margin: 4px 0 6px;
}

.employer-section-header p,
.employer-cta-card p,
.employer-job-meta,
.employer-applicant-card p {
  color: var(--muted);
  margin: 0;
}

.employer-card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employer-job-card,
.employer-applicant-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.employer-job-card h3,
.employer-applicant-card h3 {
  margin: 10px 0 6px;
}

.employer-job-count {
  color: var(--brand-strong);
}

.employer-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.employer-card-actions .btn {
  flex: 1 1 140px;
}

.employer-applicant-card {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.employer-applicant-main {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.employer-applicant-photo {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-strong);
  display: inline-flex;
  flex: 0 0 64px;
  font-weight: 900;
  height: 64px;
  justify-content: center;
  overflow: hidden;
  width: 64px;
}

.employer-applicant-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.employer-state-form {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.employer-state-form select {
  min-width: 190px;
}

.match-label {
  background: #fff;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 10px;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.2;
  padding: 9px 12px;
  white-space: nowrap;
}

.match-high {
  border-left-color: #1f8a4c;
  color: var(--brand-strong);
}

.match-good {
  border-left-color: #4d8f6b;
  color: #315f46;
}

.match-review {
  border-left-color: #c28a22;
  color: #72510a;
}

.applicant-match {
  align-self: center;
  justify-self: center;
}

.employer-applicant-card {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.employer-applicant-card > .employer-card-actions {
  justify-self: end;
}

.job-card.wide.applicant-job-card {
  grid-template-columns: 56px minmax(220px, 1fr) auto auto minmax(300px, max-content);
}

.job-card.wide.applicant-job-card > .applicant-match {
  grid-column: 3;
}

.job-card.wide.applicant-job-card > .btn {
  grid-column: 4;
}

.job-card.wide.applicant-job-card > .applicant-profile-actions {
  grid-column: 4;
  justify-self: end;
}

.applicant-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-card.wide.applicant-job-card > .state-change-form {
  grid-column: 5;
}

.employer-section-footer {
  margin-top: 14px;
}

.employer-section-footer .btn {
  display: flex;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.employer-all-jobs {
  margin-top: 18px;
}

.employer-edit-form {
  margin-top: 14px;
}

@media (max-width: 920px) {
  .employer-card-grid,
  .employer-applicant-card {
    grid-template-columns: 1fr;
  }

  .employer-cta-card,
  .employer-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .employer-state-form {
    justify-content: flex-start;
  }

  .applicant-match,
  .employer-applicant-card > .employer-card-actions {
    justify-self: start;
  }

  .job-card.wide.applicant-job-card > .applicant-match,
  .job-card.wide.applicant-job-card > .btn,
  .job-card.wide.applicant-job-card > .applicant-profile-actions,
  .job-card.wide.applicant-job-card > .state-change-form {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

/* Home: banner compacto de planes para empleadores, sin afectar el resto del Home. */
.home-plans-banner {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f1f8ee 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto 48px;
  max-width: 1180px;
  padding: 18px 22px;
}

.home-plans-banner-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.home-plans-banner h2 {
  color: var(--text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  margin: 0;
}

.home-plans-banner p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  max-width: 760px;
}

.home-plans-banner small {
  color: var(--brand-strong);
  font-weight: 800;
  line-height: 1.35;
}

.home-plans-banner .btn {
  flex: 0 0 auto;
  min-width: 150px;
}

@media (max-width: 720px) {
  .home-plans-banner {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 32px;
    padding: 18px;
  }

  .home-plans-banner .btn {
    width: 100%;
  }
}

/* Ajuste Home 2.2.6: separación entre secciones y números de categorías ordenados */
.landing-section {
  margin-bottom: 48px;
}

.category-accordion summary {
  justify-content: flex-start;
}

.category-accordion .category-title {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 12px;
}

.category-accordion .category-badge {
  margin-left: auto;
}

.category-accordion summary::after {
  flex: 0 0 auto;
  margin-left: 10px;
}

@media (max-width: 760px) {
  .landing-section {
    margin-bottom: 32px;
  }
}

/* Ajuste Home 2.2.7: separación pareja entre secciones del landing.
   Solo afecta secciones del Home marcadas como landing-section. */
.hero-section.landing-section,
.home-plans-banner.landing-section,
.content-band.landing-section,
.section-grid.landing-section,
.two-column.landing-section {
  margin-bottom: 24px;
}

.hero-section.landing-section {
  padding-bottom: 0;
}

.section-grid.landing-section,
.two-column.landing-section {
  padding-top: 0;
  padding-bottom: 0;
}

.home-plans-banner {
  margin-bottom: 24px;
}

@media (max-width: 760px) {
  .hero-section.landing-section,
  .home-plans-banner.landing-section,
  .content-band.landing-section,
  .section-grid.landing-section,
  .two-column.landing-section {
    margin-bottom: 18px;
  }

  .hero-section.landing-section {
    padding-bottom: 0;
  }

  .section-grid.landing-section,
  .two-column.landing-section {
    padding-top: 0;
    padding-bottom: 0;
  }

  .home-plans-banner {
    margin-bottom: 18px;
  }
}

@media (max-width: 760px) {
  .candidate-photo-section {
    grid-template-columns: 1fr;
  }

  .candidate-photo-section .profile-media-preview {
    justify-self: start;
  }
}

/* Ajustes puntuales admin: tarjetas y noticias con imagen */
.admin-candidates-grid > .admin-profile-card {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
}

.admin-profile-card .profile {
  align-items: center;
  min-width: 0;
}

.admin-profile-card .profile img,
.admin-profile-card .avatar {
  flex: 0 0 56px;
  height: 56px;
  width: 56px;
}

.admin-profile-card .avatar {
  font-size: 18px;
}

.admin-profile-card .admin-card-copy,
.admin-profile-card h3,
.admin-profile-card p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-profile-card .btn {
  justify-content: center;
  width: 100%;
}

.admin-category-summary-card {
  align-items: center;
  display: grid;
  gap: 8px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
}

.admin-category-summary-card strong,
.admin-category-summary-card p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-category-summary-card p {
  grid-column: 1;
}

.admin-category-summary-card .status-pill {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  white-space: nowrap;
}

.news-thumb,
.news-image,
.admin-news-image {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.news-thumb {
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
  max-height: 150px;
}

.news-image {
  aspect-ratio: 16 / 7;
  margin-bottom: 14px;
  max-height: 260px;
}

.admin-news-image {
  aspect-ratio: 16 / 6;
  max-height: 180px;
}

.admin-news-form small {
  color: var(--muted);
  font-weight: 600;
}


/* Activaciones heredadas: layout aislado para evitar solapamientos y mantener el resto del sitio intacto. */
.legacy-activation-card {
  display: block;
  padding: 22px;
}

.legacy-activation-summary {
  min-width: 0;
}

.legacy-activation-summary h3,
.legacy-activation-summary p,
.legacy-activation-summary small {
  overflow-wrap: anywhere;
}

.legacy-activation-form {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}

@media (max-width: 760px) {
  .legacy-activation-form {
    grid-template-columns: 1fr;
  }

  .legacy-activation-form .span-2 {
    grid-column: 1;
  }
}
