/* ============================================================
   CTP de Purral — Portal institucional
   ============================================================ */
:root {
  --navy: #0b1f3a;
  --navy-2: #0f2b5c;
  --blue: #1a4b8c;
  --blue-soft: #e8f0fb;
  --orange: #ff6b00;
  --orange-soft: #fff2e8;
  --green: #1f9d55;
  --green-soft: #e8f7ef;
  --amber: #b26a00;
  --amber-soft: #fff3e0;
  --red: #c62828;
  --red-soft: #ffebee;
  --ink: #16202e;
  --muted: #5b6b7f;
  --line: #e3e9f1;
  --bg: #f6f8fb;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(11, 31, 58, 0.09);
  --shadow-sm: 0 4px 14px rgba(11, 31, 58, 0.06);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--orange);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--navy);
  color: #cbd8ea;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}
.topbar-badge {
  color: #ffd7b8;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(11, 31, 58, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 82px;
}

.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #dce7f6;
  background: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.brand-text small { color: var(--muted); font-size: 0.74rem; margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #33465c;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--blue-soft); color: var(--blue); }
.site-nav .nav-cta {
  background: var(--orange);
  color: #fff;
  padding: 10px 17px;
  margin-left: 6px;
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.28);
}
.site-nav .nav-cta:hover { background: #e85f00; color: #fff; }

.nav-toggle {
  display: none;
  background: var(--blue-soft);
  color: var(--blue);
  border: 0;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  font-size: 1.35rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media {
  background: url("hero.jpg") center/cover no-repeat;
  transform: scale(1.08);
  animation: heroZoom 26s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 20, 39, 0.94) 0%, rgba(9, 30, 58, 0.82) 48%, rgba(9, 30, 58, 0.38) 100%),
    linear-gradient(0deg, rgba(6, 20, 39, 0.45), rgba(6, 20, 39, 0.1));
}
.hero-content { max-width: 760px; padding-top: 78px; padding-bottom: 78px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffb27a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 16px 0 20px;
  max-width: 720px;
  text-wrap: balance;
}
.hero p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #d7e2f1;
  max-width: 620px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 11px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(255, 107, 0, 0.3); }
.btn-primary:hover { background: #e85f00; }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }
.btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: #f1f5fa; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  margin-top: 34px;
  color: #c8d6e8;
  font-size: 0.86rem;
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.2);
  color: #7ee2a8;
  font-size: 0.72rem;
  font-weight: 800;
}

@keyframes heroZoom {
  0% { transform: scale(1.08) translate3d(0, 0, 0); }
  100% { transform: scale(1.16) translate3d(-1.2%, -1%, 0); }
}

/* ---------- Franja de datos ---------- */
.stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stats-grid > div {
  padding: 26px 22px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stats-grid > div:last-child { border-right: 0; }
.stats-grid strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.03em;
}
.stats-grid span { display: block; margin-top: 7px; color: var(--muted); font-size: 0.82rem; font-weight: 600; }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 12px 0 12px;
}
.section-head p { color: var(--muted); font-size: 1.02rem; }

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.access-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.access-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--blue);
}
.access-card.card-diurno::before { background: #e8a317; }
.access-card.card-nocturno::before { background: #4f46e5; }
.access-card.card-bolsa::before { background: var(--green); }
.access-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: var(--blue-soft);
  margin-bottom: 18px;
}
.card-diurno .card-icon { background: #fdf3dd; }
.card-nocturno .card-icon { background: #eceafe; }
.card-bolsa .card-icon { background: var(--green-soft); }

.access-card h3 { font-size: 1.22rem; color: var(--navy); margin-bottom: 9px; letter-spacing: -0.01em; }
.access-card p { color: var(--muted); font-size: 0.93rem; }
.access-card ul {
  list-style: none;
  margin: 16px 0 22px;
  display: grid;
  gap: 8px;
  color: #405268;
  font-size: 0.86rem;
}
.access-card ul li { display: flex; gap: 8px; }
.access-card ul li::before { content: "•"; color: var(--orange); font-weight: 900; }
.card-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.card-link span { transition: transform 0.2s ease; }
.card-link:hover span { transform: translateX(4px); }

/* ---------- Especialidades ---------- */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.specialty-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.specialty-card:hover { border-color: #b9cce6; transform: translateY(-3px); background: #fff; }
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.tag-day { background: #fdf3dd; color: #9a6200; }
.tag-night { background: #eceafe; color: #4338ca; }
.tag-both { background: var(--green-soft); color: #147a42; }
.specialty-card h3 { font-size: 1.04rem; color: var(--navy); margin-bottom: 7px; }
.specialty-card p { color: var(--muted); font-size: 0.87rem; }
.specialty-card a {
  display: inline-block;
  margin-top: 13px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
}
.specialty-card a:hover { text-decoration: underline; }
.section-note {
  margin-top: 26px;
  padding: 16px 20px;
  background: var(--blue-soft);
  border-radius: 12px;
  color: #2c4664;
  font-size: 0.9rem;
}
.section-note a { font-weight: 700; color: var(--blue); text-decoration: underline; }

/* ---------- Características ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.feature span { font-size: 1.6rem; display: block; margin-bottom: 12px; }
.feature h3 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.86rem; }

/* ---------- Banda CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  padding: 56px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-inner h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; margin-bottom: 6px; }
.cta-inner p { color: #c9d8ea; font-size: 0.95rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 10px 0 12px;
}
.contact-info > p { color: var(--muted); margin-bottom: 24px; }
.contact-list { list-style: none; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 13px; align-items: flex-start; }
.contact-list li > span {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--blue-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-list strong { display: block; color: var(--navy); font-size: 0.88rem; }
.contact-list div { color: var(--muted); font-size: 0.88rem; }
.contact-list a { color: var(--blue); font-weight: 600; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 15px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.8rem; font-weight: 700; color: #33465c; }
.field input,
.field textarea {
  width: 100%;
  border: 1.5px solid #d7e0eb;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fbfcfe;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.12);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-status { font-size: 0.86rem; font-weight: 600; min-height: 20px; }
.form-status.ok { color: var(--green); }
.form-status.error { color: #c62828; }

/* ---------- Página interior (Diurno) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff;
  padding: 64px 0 58px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 12px 0 12px;
}
.page-hero p { color: #cfdced; max-width: 680px; font-size: 1.02rem; }
.breadcrumb { font-size: 0.8rem; color: #9fb6d2; margin-bottom: 6px; }
.breadcrumb a { color: #d7e4f4; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.detail-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.detail-card h3 { font-size: 1.15rem; color: var(--navy); margin: 10px 0 8px; }
.detail-card p { color: var(--muted); font-size: 0.9rem; }
.detail-card ul { list-style: none; margin-top: 14px; display: grid; gap: 7px; font-size: 0.85rem; color: #405268; }
.detail-card ul li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 7px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: paso; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: paso;
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.87rem; }

/* ---------- Pie ---------- */
.site-footer { background: #081729; color: #a9bdd4; padding: 58px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 42px;
}
.footer-brand { display: flex; gap: 13px; align-items: flex-start; }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); }
.footer-brand strong { color: #fff; display: block; font-size: 1rem; }
.footer-brand p { font-size: 0.84rem; margin-top: 8px; max-width: 280px; }
.site-footer h3 { color: #fff; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { display: block; font-size: 0.86rem; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; font-size: 0.78rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .site-nav { gap: 0; }
  .site-nav a { padding: 9px 9px; font-size: 0.84rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(11, 31, 58, 0.12);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 18px 18px;
    gap: 2px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .access-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .stats-grid > div:last-child { border-bottom: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .detail-grid, .steps { grid-template-columns: 1fr; }
  .hero { min-height: 540px; }
  .hero-content { padding-top: 60px; padding-bottom: 60px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .topbar-inner { font-size: 0.7rem; }
  .brand-text small { display: none; }
  .section { padding: 60px 0; }
  .specialty-grid, .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .hero-actions .btn { width: 100%; }
  .hero-points { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .access-card, .specialty-card { transition: none; }
}

/* ============================================================
   Bolsa de empleo y área de usuario
   ============================================================ */

.auth-links { display: flex; align-items: center; gap: 4px; }
.auth-links .nav-cta { margin-left: 4px; }

.job-board { padding: 64px 0 84px; }
.job-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.job-search {
  flex: 1;
  min-width: 240px;
  padding: 12px 15px;
  border: 1.5px solid #d7e0eb;
  border-radius: 11px;
  background: #fff;
  outline: none;
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.job-search:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.1);
}
.job-filter {
  padding: 12px 14px;
  border: 1.5px solid #d7e0eb;
  border-radius: 11px;
  background: #fff;
  font-size: 0.9rem;
  color: #33465c;
  outline: none;
}
.job-filter:focus { border-color: var(--blue); }
.job-count { color: var(--muted); font-size: 0.82rem; margin-bottom: 20px; }

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

.job-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.job-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #c8d8eb;
}
.job-card h3 {
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.job-company {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 700;
}
.job-location {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
}
.job-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.job-tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--blue-soft);
  color: var(--blue);
}
.job-tag.green { background: var(--green-soft); color: #147a42; }
.job-tag.orange { background: var(--amber-soft); color: var(--amber); }
.job-tag.gray { background: #eef1f5; color: #5b6b7f; }
.job-desc {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  margin-bottom: 18px;
}
.job-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.job-date { color: var(--muted); font-size: 0.74rem; }
.job-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 54px 20px;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed #cfdbe8;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.job-empty span { display: block; font-size: 2.1rem; margin-bottom: 8px; }

.page-hero .job-hero-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Perfil ---------- */
.profile-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}
.profile-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 104px;
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.profile-card h2 {
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.profile-role { color: var(--muted); font-size: 0.84rem; margin-top: 4px; }
.profile-meta { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.profile-meta strong {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 2px;
}
.profile-meta span { color: #33465c; font-size: 0.86rem; word-break: break-word; }

.profile-main { min-width: 0; display: grid; gap: 18px; }
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tab-btn {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 10px 15px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.tab-btn:hover { color: var(--blue); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--orange); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.cv-form { display: grid; gap: 16px; }
.cv-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.cv-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cv-section-head h3 {
  font-size: 1.02rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.cv-section-head p { color: var(--muted); font-size: 0.82rem; margin-top: 3px; }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.cv-grid .field.full { grid-column: 1 / -1; }

.cv-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fbfcfe;
}
.cv-item:last-child { margin-bottom: 0; }
.cv-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.cv-item-head strong {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.cv-remove {
  border: 0;
  border-radius: 7px;
  background: var(--red-soft);
  color: var(--red);
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.cv-remove:hover { background: #ffd9dd; }
.cv-empty { color: var(--muted); font-size: 0.84rem; padding: 6px 0; }

.skill-input-row { display: flex; gap: 8px; }
.skill-input-row input { flex: 1; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.skill-tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 700;
}
.skill-tags button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.cv-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cv-status { font-size: 0.84rem; font-weight: 600; }
.cv-status.ok { color: var(--green); }
.cv-status.error { color: var(--red); }

.app-list { display: grid; gap: 12px; }
.app-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: #fbfcfe;
}
.app-card h3 { font-size: 0.95rem; color: var(--navy); }
.app-card p { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-pendiente { background: var(--amber-soft); color: var(--amber); }
.status-revisado { background: var(--blue-soft); color: var(--blue); }
.status-aceptado { background: var(--green-soft); color: #147a42; }
.status-rechazado { background: var(--red-soft); color: var(--red); }

.employer-note {
  background: var(--blue-soft);
  border-radius: 12px;
  padding: 16px 18px;
  color: #2c4664;
  font-size: 0.88rem;
  margin: 16px 0;
}

.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.mini-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #f0f4f8;
  font-size: 0.83rem;
  color: #33465c;
  vertical-align: middle;
}
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table .muted { color: var(--muted); font-size: 0.76rem; }

.toast-site {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3000;
  background: var(--navy);
  color: #fff;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  max-width: 360px;
  pointer-events: none;
}
.toast-site.show { transform: translateY(0); opacity: 1; }
.toast-site.error { background: #8e1b1b; }

@media (max-width: 1000px) {
  .job-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-card { position: static; }
}

@media (max-width: 820px) {
  .job-grid, .job-grid.three { grid-template-columns: 1fr; }
  .site-nav .auth-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav .auth-links a { padding: 12px; }
  .site-nav .auth-links .nav-cta { margin: 6px 0 0; text-align: center; }
  .job-board { padding: 48px 0 64px; }
}

@media (max-width: 560px) {
  .cv-grid { grid-template-columns: 1fr; }
  .cv-section { padding: 20px; }
  .job-toolbar { display: grid; grid-template-columns: 1fr; }
  .job-search, .job-filter { width: 100%; }
  .job-foot { align-items: flex-start; }
  .app-card { align-items: flex-start; }
}
