/* ============================================================
   public/assets/css/public.css — TalentoHoy Sitio Público
   Skills: frontend-design (editorial cálido, DM Serif+DM Sans)
           senior-security (sin inline critical JS en CSS)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

:root {
  --bg: #f5f3ee; --bg2: #eceae3; --surface: #fff;
  --ink: #0d0d12; --ink2: #3d3b36; --muted: #7a7870;
  --border: rgba(13,13,18,.1); --border2: rgba(13,13,18,.18);
  --accent: #c8541a; --accent2: #e8843a;
  --green: #16803c; --green-bg: rgba(22,128,60,.08);
  --sh: 0 2px 12px rgba(13,13,18,.08), 0 1px 3px rgba(13,13,18,.06);
  --sh-lg: 0 12px 40px rgba(13,13,18,.12), 0 4px 12px rgba(13,13,18,.08);
  --r: 14px;
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; min-height: 100vh; }
body::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse 80% 60% at 20% -10%, rgba(200,84,26,.07) 0%, transparent 60%), radial-gradient(ellipse 60% 50% at 90% 110%, rgba(212,168,71,.06) 0%, transparent 55%); pointer-events: none; z-index: 0; }

h1,h2,h3 { font-family: 'DM Serif Display', serif; font-weight: 400; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1.05; }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 19px; }

/* NAV */
.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(245,243,238,.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-links { list-style: none; display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

/* HERO */
.hero { max-width: 1200px; margin: 0 auto; padding: 80px 32px 60px; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 100px; background: rgba(200,84,26,.1); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; }
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }
.hero-title { line-height: 1.05; }
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub { margin-top: 20px; font-size: 18px; font-weight: 300; color: var(--muted); max-width: 480px; line-height: 1.65; }

/* SEARCH */
.search-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.search-box { flex: 1; min-width: 260px; display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh); transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,84,26,.1); }
.search-box input { flex: 1; border: none; background: transparent; font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--ink); outline: none; }
.search-box input::placeholder { color: var(--muted); }
.btn-search { padding: 13px 28px; border-radius: 100px; background: var(--accent); color: #fff; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; border: none; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 16px rgba(200,84,26,.3); transition: all .2s; }
.btn-search:hover { background: var(--accent2); transform: translateY(-2px); }

/* FILTERS */
.filters-bar { max-width: 1200px; margin: 0 auto; padding: 0 32px 24px; display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.chip { padding: 7px 16px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; cursor: pointer; transition: all .18s; }
.chip:hover, .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.accent { background: rgba(200,84,26,.08); color: var(--accent); border-color: rgba(200,84,26,.25); }
.chip.accent.active { background: var(--accent); color: #fff; }

/* JOBS */
.jobs-section { max-width: 1200px; margin: 0 auto; padding: 0 32px 80px; position: relative; z-index: 1; }
.jobs-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.jobs-sort { font-size: 13px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.sort-opt { text-decoration: none; color: var(--muted); font-size: 13px; }
.sort-opt.on { color: var(--accent); font-weight: 500; }
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }

/* JOB CARD */
.job-card { background: rgba(255,255,255,.72); border: 1px solid var(--border); border-radius: 20px; padding: 26px; backdrop-filter: blur(12px); box-shadow: var(--sh); transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, border-color .25s; animation: cardIn .5s ease both; }
.job-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: rgba(200,84,26,.2); }
@keyframes cardIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.job-card:nth-child(1){animation-delay:.05s}.job-card:nth-child(2){animation-delay:.1s}.job-card:nth-child(3){animation-delay:.15s}.job-card:nth-child(4){animation-delay:.2s}.job-card:nth-child(5){animation-delay:.25s}.job-card:nth-child(6){animation-delay:.3s}
.job-card.featured { grid-column: span 2; background: linear-gradient(135deg,#0d0d12,#1e1e2a); border-color: transparent; }
.job-card.featured .card-title, .job-card.featured .dept-badge { color: #fff; }
.job-card.featured .card-meta span { color: rgba(255,255,255,.55); }
.job-card.featured .card-footer { border-top-color: rgba(255,255,255,.1); }
.job-card.featured .btn-apply { background: var(--accent); color: #fff; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.dept-badge { padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: rgba(13,13,18,.06); color: var(--muted); }
.featured-label { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 100px; background: rgba(212,168,71,.2); color: #d4a847; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.card-title { font-family: 'DM Serif Display', serif; font-size: 21px; line-height: 1.2; margin-bottom: 10px; }
.card-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.card-meta span { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border); }
.app-count { font-size: 12px; color: var(--muted); }
.btn-apply, .btn-apply-big { padding: 9px 20px; border-radius: 100px; background: var(--ink); color: #fff; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; text-decoration: none; border: none; cursor: pointer; transition: all .2s; display: inline-block; }
.btn-apply:hover { background: var(--accent); transform: translateX(2px); }
.btn-apply-big { padding: 14px 28px; font-size: 15px; width: 100%; text-align: center; margin-top: 12px; }
.btn-apply-big:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,84,26,.35); }
.expiry-badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 100px; background: rgba(22,128,60,.08); color: var(--green); }
.expiry-badge.urgent { background: rgba(239,68,68,.08); color: #dc2626; }

/* EMPTY */
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-icon { font-size: 40px; margin-bottom: 16px; }

/* PAGINATION */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.page-btn { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; text-decoration: none; font-size: 13px; font-weight: 500; color: var(--muted); border: 1px solid var(--border); background: var(--surface); transition: all .15s; }
.page-btn:hover, .page-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* JOB DETAIL */
.job-detail-inner { max-width: 1100px; margin: 0 auto; padding: 40px 32px 80px; }
.back-link { margin-bottom: 24px; }
.back-link a { color: var(--muted); text-decoration: none; font-size: 14px; }
.back-link a:hover { color: var(--ink); }
.job-badges { display: flex; gap: 8px; margin-bottom: 14px; }
.status-badge.active { background: rgba(22,128,60,.08); color: var(--green); padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.job-title { font-size: clamp(28px, 4vw, 50px); margin-bottom: 16px; }
.job-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.job-meta span { font-size: 14px; color: var(--muted); }
.job-body { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-top: 32px; }
@media(max-width:800px){.job-body{grid-template-columns:1fr}}
.wysiwyg-content { font-size: 15px; line-height: 1.75; color: var(--ink2); }
.wysiwyg-content p { margin-bottom: 14px; }
.wysiwyg-content ul { padding-left: 20px; margin-bottom: 14px; }
.wysiwyg-content h3 { font-size: 17px; margin: 24px 0 10px; }
.requirements { font-size: 14px; line-height: 1.8; color: var(--ink2); white-space: pre-line; }
.apply-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; box-shadow: var(--sh); margin-bottom: 16px; }
.apply-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.share-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
.share-card a { display: inline-block; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border); text-decoration: none; font-size: 12px; color: var(--muted); margin-right: 6px; margin-top: 8px; transition: all .15s; }
.share-card a:hover { background: var(--bg2); color: var(--ink); }

/* TRACKING */
.tracking-page { max-width: 540px; margin: 60px auto; padding: 0 20px 80px; }
.tracking-result { margin-top: 20px; }
.applicant-info { background: var(--bg2); border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.status-current { font-size: 15px; margin-bottom: 20px; }
.timeline { display: flex; flex-direction: column; gap: 8px; }
.timeline-step { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.timeline-step .step-label { font-size: 13px; font-weight: 500; flex: 1; }
.timeline-step .step-date { font-size: 11px; color: var(--muted); }

/* ALERTS */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 18px; }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(22,128,60,.2); }
.alert-error { background: rgba(220,38,38,.08); color: #dc2626; border: 1px solid rgba(220,38,38,.2); }

/* FOOTER */
.site-footer { border-top: 1px solid var(--border); padding: 32px; position: relative; z-index: 1; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-inner p, .footer-inner a { font-size: 13px; color: var(--muted); text-decoration: none; }

/* INPUT ERRORS */
.input-error { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,.1) !important; }

/* RESPONSIVE */
@media(max-width:768px){.nav-inner{padding:14px 16px}.hero{padding:48px 16px 40px}.filters-bar,.jobs-section{padding-left:16px;padding-right:16px}.jobs-grid{grid-template-columns:1fr}.job-card.featured{grid-column:span 1}.search-form{flex-direction:column}}
