/* ── candidatos.html + mi-perfil.html ── */

/* El atributo hidden debe ganar sobre cualquier display de clase */
[hidden] { display: none !important; }

/* Nav simple (candidatos + mi-perfil) — alineado como el home */
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}
.nav__brand img {
  height: 38px; width: auto; display: block;
  /* Glow blanco para que el logo resalte sobre el azul (igual que el home) */
  filter: drop-shadow(0 0 16px rgba(255,255,255,.75))
          drop-shadow(0 0 6px rgba(255,255,255,.5))
          drop-shadow(0 2px 5px rgba(0,0,0,.4));
}

/* Hero */
.c-hero {
  background:
    linear-gradient(140deg, rgba(0,30,72,.94) 0%, rgba(0,72,133,.82) 60%, rgba(0,114,206,.65) 100%),
    url('../images/hero-bg.jpg') center / cover no-repeat;
  color: #fff;
  padding: 120px 24px 64px;
  text-align: center;
}
.c-hero__inner { max-width: 680px; margin: 0 auto; }
.c-hero__eyebrow {
  display: inline-block;
  background: rgba(187,219,0,.18);
  color: #BBDB00;
  border: 1px solid rgba(187,219,0,.35);
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 16px;
  margin-bottom: 20px;
}
.c-hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}
.c-hero__sub { font-size: 1.1rem; color: rgba(255,255,255,.82); margin: 0 0 32px; }

.c-hero__stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.c-hero__stats div { text-align: center; }
.c-hero__stats strong { display: block; font-size: 2rem; font-weight: 800; color: #BBDB00; }
.c-hero__stats span   { font-size: .85rem; color: rgba(255,255,255,.7); }

/* Register section */
.c-register { padding: 80px 0; background: #f8fafc; }
.c-register__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .c-register__wrap { grid-template-columns: 1fr; gap: 32px; }
}
.c-register__intro h2 { font-size: 1.75rem; font-weight: 800; color: #004885; margin: 0 0 12px; }
.c-register__intro p  { color: #4b5563; margin: 0 0 24px; }
.c-register__perks { list-style: none; padding: 0; margin: 0; }
.c-register__perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #374151;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: .95rem;
}
.c-register__perks li i { color: #004885; font-size: 1.2rem; flex-shrink: 0; }

/* Form shared */
.c-reg-form {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0,72,133,.08);
}
.c-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .c-form__row { grid-template-columns: 1fr; } }
.c-form__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.c-form__field label { font-size: .85rem; font-weight: 600; color: #374151; }
.c-form__field input,
.c-form__field select,
.c-form__field textarea {
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  color: #111827;
  transition: border-color .2s;
}
.c-form__field input:focus,
.c-form__field select:focus,
.c-form__field textarea:focus {
  outline: none;
  border-color: #0072CE;
  box-shadow: 0 0 0 3px rgba(0,114,206,.12);
}
.c-form__field input:disabled { background: #f3f4f6; color: #6b7280; cursor: not-allowed; }
.c-form__error {
  background: #fef2f2; color: #dc2626; border: 1px solid #fecaca;
  border-radius: 8px; padding: 10px 14px; font-size: .9rem; margin-bottom: 12px;
}
.c-form__success {
  background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0;
  border-radius: 8px; padding: 10px 14px; font-size: .9rem; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.c-form__legal { font-size: .78rem; color: #9ca3af; margin-top: 12px; text-align: center; }
.btn--full { width: 100%; text-align: center; }

/* Registro exitoso */
.c-reg-success {
  background: #fff;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 4px 24px rgba(0,72,133,.08);
  text-align: center;
}
.c-reg-success__icon { font-size: 3rem; color: #16a34a; margin-bottom: 16px; }
.c-reg-success h3 { font-size: 1.5rem; font-weight: 800; color: #004885; margin: 0 0 12px; }
.c-reg-success p  { color: #4b5563; margin: 0 0 8px; }

/* Footer simple */
.c-footer-simple {
  text-align: center;
  padding: 24px;
  color: #9ca3af;
  font-size: .85rem;
  border-top: 1px solid #e5e7eb;
}
.c-footer-simple a { color: #0072CE; text-decoration: none; }

/* ── mi-perfil.html ── */
.perfil-page { background: #f8fafc; min-height: 100vh; }

.perfil-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 16px;
  text-align: center;
  color: #4b5563;
}
.perfil-spinner {
  width: 40px; height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #004885;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.perfil-state__icon { font-size: 3rem; }
.perfil-state__icon--error { color: #dc2626; }
.perfil-state h2 { margin: 0; font-size: 1.4rem; color: #111827; }

.perfil-main { padding: 48px 24px; }
.perfil-wrap { max-width: 680px; margin: 0 auto; }

.perfil-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.perfil-header h1 { margin: 0; font-size: 1.6rem; font-weight: 800; color: #111827; }
.perfil-avatar {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #004885, #0072CE);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.perfil-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 4px;
}

.perfil-status-msg {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .95rem;
  margin-bottom: 24px;
}
.perfil-status-msg--nuevo      { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.perfil-status-msg--en_proceso { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.perfil-status-msg--entrevista { background: #f5f3ff; color: #5b21b6; border: 1px solid #ddd6fe; }
.perfil-status-msg--colocado   { background: #f0fdf4; color: #14532d; border: 1px solid #bbf7d0; }
.perfil-status-msg--archivado  { background: #f9fafb; color: #6b7280; border: 1px solid #e5e7eb; }

.perfil-cv-section {
  margin-top: 28px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 4px 24px rgba(0,72,133,.08);
}
.perfil-cv-section h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: #374151; }

/* Foto de perfil editable */
.perfil-avatar--editable { cursor: pointer; position: relative; overflow: hidden; transition: filter .2s; }
.perfil-avatar--editable:hover { filter: brightness(.92); }
.perfil-avatar--editable::after {
  content: '✎';
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.45); color: #fff;
  font-size: .7rem; text-align: center; padding: 2px 0;
}
.perfil-photo-hint { font-size: .75rem; color: #9ca3af; margin-top: 6px; }

/* Tarjeta de CV */
.cv-card {
  background: linear-gradient(135deg, #eff6fc 0%, #f8fbea 100%);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 28px;
}
.cv-card__head { display: flex; gap: 16px; align-items: flex-start; }
.cv-card__icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #004885, #0072CE);
  color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.cv-card__head h3 { margin: 0 0 4px; font-size: 1.1rem; color: #004885; }
.cv-card__head p  { margin: 0; font-size: .9rem; color: #4b5563; }
.cv-card__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.cv-card__actions .btn { cursor: pointer; }
.cv-card__actions .is-disabled { opacity: .6; pointer-events: none; }
.cv-card__status {
  margin-top: 14px; padding: 10px 14px; border-radius: 8px;
  font-size: .9rem; display: flex; align-items: center; gap: 8px;
}
.cv-card__status--info  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.cv-card__status--ok    { background: #f0fdf4; color: #14532d; border: 1px solid #bbf7d0; }
.cv-card__status--error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.cv-spin {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid rgba(0,0,0,.15); border-top-color: currentColor;
  border-radius: 50%; display: inline-block;
  animation: spin .7s linear infinite;
}
.c-form__hint { font-size: .78rem; color: #9ca3af; margin-top: 4px; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; }
.badge--blue   { background: #dbeafe; color: #1d4ed8; }
.badge--yellow { background: #fef3c7; color: #92400e; }
.badge--purple { background: #ede9fe; color: #5b21b6; }
.badge--green  { background: #dcfce7; color: #14532d; }
.badge--gray   { background: #f3f4f6; color: #6b7280; }
