/* Fellows egresados IRF26 - complementa results.css (verificación de certificado) */

.fellows-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(255, 199, 37, 0.35);
  border-radius: 999px;
  background: rgba(255, 167, 38, 0.08);
  color: var(--color-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fellows-hero-kicker .material-symbols-outlined {
  font-size: 1.1rem;
}

/* Buscador de código */
.fellows-verify-form {
  margin-top: 1.75rem;
  width: 100%;
  max-width: 520px;
}

.fellows-verify-form label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  color: #d4d4d4;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fellows-verify-form label .material-symbols-outlined {
  color: var(--color-secondary);
  font-size: 1.15rem;
}

.fellows-verify-field {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(18, 18, 18, 0.85);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.fellows-verify-field:focus-within {
  border-color: rgba(255, 199, 37, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 199, 37, 0.08);
}

.fellows-verify-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.6rem 0.75rem;
}

.fellows-verify-field input:focus {
  outline: none;
  box-shadow: none;
}

.fellows-verify-field input::placeholder {
  color: #5f5f5f;
}

.fellows-verify-field button {
  flex: none;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: #0d0d0d;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fellows-verify-field button:hover,
.fellows-verify-field button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 167, 38, 0.3);
}

/* Tarjeta de verificación */
.fellow-verify {
  display: none;
  margin-bottom: 3rem;
  scroll-margin-top: 110px;
}

.fellow-verify.is-visible {
  display: block;
  animation: fellow-card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fellow-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.fellow-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.75rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 2.25rem;
  border: 1px solid rgba(255, 199, 37, 0.45);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 167, 38, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(22, 22, 22, 0.96), rgba(12, 12, 12, 0.96));
  box-shadow: 0 0 0 1px rgba(255, 199, 37, 0.06), 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 167, 38, 0.12);
}

.fellow-card-seal {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #0d0d0d;
  box-shadow: 0 0 40px rgba(255, 199, 37, 0.45);
}

.fellow-card-seal .material-symbols-outlined {
  font-size: 2.8rem;
  font-variation-settings: 'FILL' 1;
}

.fellow-card-status {
  display: block;
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fellow-card h3 {
  margin-top: 0.5rem;
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.fellow-card-code {
  display: inline-flex;
  margin-top: 0.7rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(255, 199, 37, 0.5);
  border-radius: 6px;
  background: rgba(255, 167, 38, 0.1);
  color: var(--color-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.fellow-card-desc {
  margin-top: 1rem;
  max-width: 640px;
  color: #bdbdbd;
  font-size: 0.95rem;
  line-height: 1.6;
}

.fellow-card-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-top: 1.25rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(255, 199, 37, 0.45);
  border-radius: 10px;
  color: var(--color-secondary);
  font-size: 0.88rem;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.fellow-card-linkedin:hover,
.fellow-card-linkedin:focus-visible {
  background: var(--gradient-primary);
  color: #0d0d0d;
}

.fellow-card-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #a3a3a3;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fellow-card-close:hover,
.fellow-card-close:focus-visible {
  color: #fff;
  border-color: rgba(255, 199, 37, 0.6);
}

.fellow-card--invalid {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.96), rgba(12, 12, 12, 0.96));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.fellow-card--invalid .fellow-card-seal {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  box-shadow: none;
}

.fellow-card--invalid .fellow-card-status {
  color: #f87171;
}

/* Filas clicables */
.fellows-row {
  cursor: pointer;
}

.fellows-row.is-selected {
  border-color: rgba(255, 199, 37, 0.75) !important;
  box-shadow: 0 0 0 1px rgba(255, 199, 37, 0.25), 0 0 30px rgba(255, 167, 38, 0.15);
}

@media (max-width: 720px) {
  .fellow-card {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.5rem 1.25rem;
  }

  .fellow-card-seal {
    width: 64px;
    height: 64px;
  }

  .fellow-card-seal .material-symbols-outlined {
    font-size: 2.1rem;
  }

  .fellows-verify-field button {
    padding: 0 1rem;
  }
}

/* Hero centrado: sin imagen de badge, el contenido queda bajo el header fijo */
.fellows-page .results-hero-grid {
  justify-content: center;
  padding-top: 5rem;
}

.fellows-page .results-hero-content {
  flex-grow: 0;
}

.fellows-page .results-hero h1 {
  margin-top: 1.25rem;
}

/* Certificado: vista previa + descarga */
.fellow-card {
  max-width: 1040px;
}

.fellow-cert {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fellow-cert-preview {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 199, 37, 0.35);
  border-radius: 14px;
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.fellow-cert-preview:hover,
.fellow-cert-preview:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 199, 37, 0.8);
}

.fellow-cert-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.fellow-cert-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.fellow-cert-actions .fellow-card-linkedin {
  margin-top: 0;
}

.fellow-cert-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: 12px;
  background: var(--gradient-primary);
  color: #0d0d0d;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(255, 167, 38, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fellow-cert-download:hover,
.fellow-cert-download:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(255, 167, 38, 0.4);
}

@media (max-width: 720px) {
  .fellow-cert-actions > a {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* Foto del fellow en el círculo, con el sello de verificado encima */
.fellow-card-seal--photo {
  position: relative;
  padding: 4px;
  box-shadow: 0 0 34px rgba(255, 199, 37, 0.4);
}

.fellow-card-seal--photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1a1a1a;
}

.fellow-card-seal-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 3px solid #141414;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #0d0d0d;
}

.fellow-card-seal--photo .fellow-card-seal-badge .material-symbols-outlined {
  font-size: 1.1rem;
}

.fellow-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fellow-card-cohort {
  display: inline-flex;
  margin-top: 0.7rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #e5e5e5;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Compartir en LinkedIn */
.fellow-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 12px;
  background: #0a66c2;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(10, 102, 194, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.fellow-share-btn:hover,
.fellow-share-btn:focus-visible {
  background: #004182;
  transform: translateY(-1px);
}

.fellow-share-note,
.fellow-share-hint {
  margin: 0.9rem auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
}

.fellow-share-note {
  color: #9a9a9a;
}

.fellow-share-note a {
  color: var(--color-secondary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fellow-share-hint {
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(10, 102, 194, 0.45);
  border-radius: 10px;
  background: rgba(10, 102, 194, 0.12);
  color: #dbe9f7;
}

@media (max-width: 720px) {
  .fellow-cert-actions > .fellow-share-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
