/* ================================================================
   solicitar.css — Página de solicitud de empleo
================================================================ */

/* ── Hero ─────────────────────────────────────────────────────── */
.solicitar-hero {
  padding: 120px 0 52px;
  background: var(--surface, #161b16);
  border-bottom: none;
}

.solicitar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.solicitar-breadcrumb a {
  color: rgba(255,255,255,0.40);
  text-decoration: none;
  transition: color 0.2s;
}
.solicitar-breadcrumb a:hover { color: #8aab8b; }
.solicitar-breadcrumb-sep { opacity: 0.3; }
.solicitar-breadcrumb span { color: #8aab8b; font-weight: 600; }

.solicitar-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8aab8b;
  margin-bottom: 10px;
}

.solicitar-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 0;
}

/* ── Cuerpo ───────────────────────────────────────────────────── */
.solicitar-body {
  padding: 56px 0 100px;
  background: #f5f4f0;
}

/* ── Tarjeta del formulario ──────────────────────────────────── */
.solicitar-form-card {
  background: #fff;
  border-radius: 12px;
  padding: 44px 48px;
  border: 1px solid rgba(26,26,26,0.07);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 24px rgba(0,0,0,0.03);
}

.solicitar-form-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(26,26,26,0.07);
}

/* ── Campos del formulario (reutiliza .af-* de equipo.css) ──── */
.af-form { display: flex; flex-direction: column; gap: 0; }

.af-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.af-field {
  border: 1px solid #dde1dc;
  margin-top: -1px;
  margin-left: -1px;
  position: relative;
  transition: border-color 0.2s, z-index 0s;
}
.af-field:first-child { margin-left: 0; }
.af-row .af-field:first-child { margin-left: 0; }
.af-field:focus-within {
  border-color: #607561;
  z-index: 2;
}
.af-field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.38);
  padding: 14px 18px 0;
  font-weight: 600;
  transition: color 0.2s;
}
.af-field:focus-within label { color: #607561; }
.af-input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.af-input-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  flex-shrink: 0;
}
.af-field-linkedin input {
  padding-left: 26px !important;
}

.af-field input,
.af-field textarea,
.af-field select {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 6px 18px 14px;
  font-size: 15px;
  color: #1a1a1a;
  font-family: inherit;
  resize: none;
}
.af-field input::placeholder,
.af-field textarea::placeholder { color: rgba(0,0,0,0.25); }
.af-field textarea { min-height: 120px; line-height: 1.6; }

/* CV upload */
.af-field-cv {
  border: 1.5px dashed #c8ccc8;
  border-radius: 6px;
  margin-top: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.af-field-cv:hover { border-color: #607561; background: rgba(96,117,97,0.03); }
.af-field-cv label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  cursor: pointer;
  color: rgba(0,0,0,0.5);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.af-field-cv input[type=file] { display: none; }
.af-cv-filename {
  font-size: 12px;
  color: #607561;
  font-weight: 600;
  margin-left: auto;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.af-cv-error {
  font-size: 11px;
  color: #e53935;
  padding: 0 18px 10px;
}

/* GDPR */
.af-legal {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(0,0,0,0.45);
  line-height: 1.55;
}
.af-legal input[type=checkbox] { margin-top: 2px; accent-color: #607561; flex-shrink: 0; }
.af-legal a { color: #607561; text-decoration: underline; }

/* Submit */
.af-submit-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.af-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 32px;
  background: #607561;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}
.af-btn-submit:hover { background: #4d6050; transform: translateY(-1px); }
.af-btn-submit:disabled { opacity: 0.65; pointer-events: none; }

.af-feedback { font-size: 13px; padding: 4px 0; }
.af-feedback.success { color: #2e7d32; }
.af-feedback.error   { color: #c62828; }

/* Estado éxito */
.solicitar-success {
  text-align: center;
  padding: 48px 20px;
  animation: s-in 0.45s cubic-bezier(0.22,1,0.36,1);
}
@keyframes s-in {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}
.solicitar-success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(96,117,97,0.1);
  border: 1px solid rgba(96,117,97,0.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: #607561;
}
.solicitar-success h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem,3vw,2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.solicitar-success p {
  color: rgba(0,0,0,0.5);
  font-size: 15px;
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto 24px;
}
.solicitar-success-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #607561;
  text-decoration: none;
  border: 1.5px solid #607561;
  border-radius: 4px;
  padding: 11px 24px;
  transition: background 0.2s, color 0.2s;
}
.solicitar-success-back:hover { background: #607561; color: #fff; }

/* ── Sidebar ──────────────────────────────────────────────────── */
.solicitar-sidebar {
  position: sticky;
  top: 100px;
}

.solicitar-info-card {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  border: 1px solid rgba(26,26,26,0.07);
  margin-bottom: 16px;
}
.solicitar-info-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.35);
  margin-bottom: 18px;
}
.sic-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26,26,26,0.05);
}
.sic-item:last-child { border-bottom: none; padding-bottom: 0; }
.sic-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(96,117,97,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #607561;
}
.sic-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.35);
  font-weight: 600;
  margin-bottom: 2px;
}
.sic-value {
  font-size: 13px;
  color: #1a1a1a;
  font-weight: 500;
}

.solicitar-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.solicitar-back-link:hover { color: #607561; }

/* ── Skeleton ─────────────────────────────────────────────────── */
.s-skeleton { display: flex; flex-direction: column; gap: 12px; }
.sk-line {
  height: 15px;
  background: linear-gradient(90deg,#e4e4e4 25%,#efefef 50%,#e4e4e4 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: sk-shimmer 1.4s infinite;
}
.sk-line.sk-title  { height: 26px; width: 60%; }
.sk-line.sk-short  { width: 38%; }
.sk-line.sk-medium { width: 72%; }
@keyframes sk-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 991px) {
  .solicitar-hero { padding: 95px 0 44px; }
  .solicitar-sidebar { position: static; margin-top: 32px; }
}
@media (max-width: 767px) {
  .solicitar-body { padding: 36px 0 70px; }
  .solicitar-form-card { padding: 28px 20px; }
  .af-row { grid-template-columns: 1fr; }
  .af-field { margin-left: 0; }
}
