/* ============================
   Colabora-expertos / directorio / perfil público / CTA home / dashboard candidato
   ============================ */

.colabora-expertos { max-width: 920px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.colabora-hero { text-align: center; padding: 1.5rem 0 2rem; }
.colabora-hero__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--aqua, #14b8a6);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.colabora-hero__title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--blue-deep, #1e3a5f);
  margin: 0 0 0.9rem;
  line-height: 1.2;
}
.colabora-hero__sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #334155;
  max-width: 720px;
  margin: 0 auto;
}

.colabora-section-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.4rem;
  color: var(--blue-deep);
  margin: 2.4rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gray-light, #e5e7eb);
}

.colabora-benefits__list, .colabora-process__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}
.colabora-benefits__list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.colabora-benefits__list li {
  background: var(--off-white, #f9fafb);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 1rem 1.2rem;
}
.colabora-benefits__list li strong { color: var(--blue-deep); display: block; margin-bottom: 0.3rem; font-size: 1.02rem; }
.colabora-benefits__list li p { margin: 0; color: #475569; font-size: 0.95rem; line-height: 1.55; }

.colabora-process__steps { counter-reset: step; padding-left: 0; }
.colabora-process__steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 0.9rem 1rem 0.9rem 3rem;
  position: relative;
  line-height: 1.55;
}
.colabora-process__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.7rem;
  top: 0.75rem;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--blue-deep);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.colabora-flash { padding: 1rem 1.2rem; border-radius: 8px; background: var(--off-white); border-left: 4px solid var(--gray-light); margin: 1.4rem 0; }
.colabora-flash--success { background: rgba(34,197,94,0.08); border-left-color: #15803d; }
.colabora-flash--success h2 { margin: 0 0 0.4rem; color: #14532d; }
.colabora-flash--error { background: rgba(220,38,38,0.08); border-left-color: #b91c1c; color: #7f1d1d; }

.colabora-form-wrap { margin-top: 2.4rem; padding: 1.5rem 1.6rem; background: #fff; border: 1px solid var(--gray-light); border-radius: 10px; }
.colabora-form-intro { color: #4b5563; font-size: 0.92rem; margin: 0 0 1.2rem; }
.colabora-form-section { font-size: 1rem; color: var(--blue-deep); margin: 1.4rem 0 0.6rem; }
.colabora-form-section:first-child { margin-top: 0; }
.colabora-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; margin-bottom: 0.7rem; }
.colabora-form-full { display: block; margin-bottom: 0.7rem; }
.colabora-form label { display: flex; flex-direction: column; font-size: 0.82rem; font-weight: 600; color: #4b5563; }
.colabora-form input, .colabora-form textarea, .colabora-form select {
  margin-top: 0.3rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  background: #fff;
}
.colabora-form input:focus, .colabora-form textarea:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(30,58,95,0.1); }
.colabora-form-hint { font-weight: 400; font-size: 0.78rem; color: #6b7280; margin-top: 0.2rem; }
.colabora-form-consent { margin: 1.3rem 0 1rem; }
.colabora-form-consent label { flex-direction: row; align-items: flex-start; font-size: 0.88rem; font-weight: 400; color: #475569; gap: 0.5rem; }
.colabora-form-consent input { margin-top: 0.2rem; }
.colabora-form-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.2rem; }

.colabora-foot-link { text-align: center; margin-top: 2rem; font-size: 0.95rem; color: #475569; }

@media (max-width: 700px) {
  .colabora-form-row { grid-template-columns: 1fr; }
}

/* ========== Directorio público /expertos ========== */
.expertos-page { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.expertos-header { text-align: center; margin-bottom: 2.2rem; }
.expertos-eyebrow { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; color: var(--aqua, #14b8a6); text-transform: uppercase; margin-bottom: 0.5rem; }
.expertos-title { font-family: var(--font-serif, Georgia, serif); font-size: 2rem; color: var(--blue-deep); margin: 0 0 0.7rem; }
.expertos-sub { color: #475569; max-width: 680px; margin: 0 auto 1rem; line-height: 1.6; }
.expertos-cta { margin-top: 1rem; }

.expertos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.expert-card { background: #fff; border: 1px solid var(--gray-light); border-radius: 10px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.expert-card:hover { transform: translateY(-2px); box-shadow: 0 6px 14px -4px rgba(0,0,0,0.08); }
.expert-card__link { display: block; color: inherit; text-decoration: none; padding: 1.2rem 1.1rem; }
.expert-card__figure { width: 90px; height: 90px; margin: 0 auto 0.8rem; border-radius: 50%; overflow: hidden; background: var(--off-white); }
.expert-card__figure img { width: 100%; height: 100%; object-fit: cover; }
.expert-card__avatar-placeholder { width: 90px; height: 90px; margin: 0 auto 0.8rem; border-radius: 50%; background: var(--blue-deep); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; }
.expert-card__name { font-size: 1.05rem; color: var(--blue-deep); margin: 0 0 0.25rem; text-align: center; }
.expert-card__title { font-size: 0.85rem; color: #475569; text-align: center; margin: 0 0 0.2rem; }
.expert-card__institution { font-size: 0.82rem; color: #6b7280; text-align: center; margin: 0 0 0.5rem; font-style: italic; }
.expert-card__specialties { font-size: 0.78rem; color: #475569; text-align: center; margin: 0; line-height: 1.4; }

/* ========== Perfil público /expertos/{slug} ========== */
.expert-profile__header { display: flex; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; align-items: flex-start; }
.expert-profile__figure { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.expert-profile__figure img { width: 100%; height: 100%; object-fit: cover; }
.expert-profile__avatar-placeholder { width: 140px; height: 140px; border-radius: 50%; background: var(--blue-deep); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 700; flex-shrink: 0; }
.expert-profile__intro { flex: 1; min-width: 260px; }
.expert-profile__name { font-family: var(--font-serif); font-size: 1.8rem; color: var(--blue-deep); margin: 0 0 0.4rem; }
.expert-profile__title { font-size: 1rem; color: #334155; margin: 0 0 0.2rem; }
.expert-profile__institution { font-size: 0.95rem; color: #475569; font-style: italic; margin: 0 0 0.6rem; }
.expert-profile__specialties { font-size: 0.9rem; color: #475569; margin: 0 0 0.7rem; }
.expert-profile__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.expert-profile__links a { display: inline-block; padding: 0.35rem 0.7rem; background: var(--off-white); border: 1px solid var(--gray-light); border-radius: 999px; color: var(--blue-deep); text-decoration: none; font-size: 0.85rem; }
.expert-profile__links a:hover { background: var(--blue-deep); color: #fff; }

.expert-profile__section { margin-bottom: 1.8rem; }
.expert-profile__section h2 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--blue-deep); margin: 0 0 0.7rem; border-bottom: 1px solid var(--gray-light); padding-bottom: 0.4rem; }
.expert-profile__bio, .expert-profile__publications { line-height: 1.65; color: #1f2937; font-size: 0.98rem; }

.expert-profile__topics { list-style: none; padding: 0; margin: 0; }
.expert-profile__topics li { padding: 0.55rem 0; border-bottom: 1px dashed var(--gray-light); display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.expert-profile__topics li:last-child { border-bottom: none; }
.expert-profile__topics a { color: var(--blue-deep); font-weight: 500; }
.expert-profile__topic-date { font-size: 0.8rem; color: #6b7280; margin-left: auto; }

/* ========== CTA en home ========== */
.home-expert-cta {
  margin: 2.5rem 1.5rem;
  padding: 2rem 2.2rem;
  background: linear-gradient(135deg, rgba(30,58,95,0.96), rgba(20,184,166,0.92));
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px -10px rgba(30,58,95,0.4);
}
.home-expert-cta__inner { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.home-expert-cta__copy { flex: 1; min-width: 280px; }
.home-expert-cta__eyebrow { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; opacity: 0.85; margin-bottom: 0.6rem; }
.home-expert-cta__title { font-family: var(--font-serif); font-size: 1.5rem; margin: 0 0 0.7rem; line-height: 1.25; }
.home-expert-cta__sub { font-size: 1rem; line-height: 1.55; opacity: 0.92; margin: 0 0 0.9rem; }
.home-expert-cta__bullets { list-style: none; padding: 0; margin: 0; }
.home-expert-cta__bullets li { padding-left: 1.4rem; position: relative; margin-bottom: 0.35rem; font-size: 0.94rem; opacity: 0.92; }
.home-expert-cta__bullets li::before { content: "✓"; position: absolute; left: 0; color: #fff; font-weight: 700; }
.home-expert-cta__action { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; min-width: 220px; }
.home-expert-cta__action .btn { background: #fff; color: var(--blue-deep); border: 0; }
.home-expert-cta__action .btn:hover { background: rgba(255,255,255,0.92); }
.home-expert-cta__secondary { color: #fff; text-decoration: underline; opacity: 0.9; font-size: 0.9rem; }
.home-expert-cta__secondary:hover { opacity: 1; }

/* ========== Dashboard candidato ========== */
.dashboard-expert { max-width: 880px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.dashboard-expert__status { padding: 1rem 1.2rem; border-radius: 8px; margin-bottom: 1.5rem; border-left: 4px solid var(--gray-light); background: var(--off-white); }
.dashboard-expert__status--pending { background: rgba(234,179,8,0.08); border-left-color: #a16207; }
.dashboard-expert__status--approved { background: rgba(34,197,94,0.08); border-left-color: #15803d; }
.dashboard-expert__status--rejected { background: rgba(220,38,38,0.08); border-left-color: #b91c1c; }
.dashboard-expert__status p { margin: 0.4rem 0 0; font-size: 0.94rem; line-height: 1.55; }
