/* ══════════════════════════════════════
   ASOCIADO DETALLE
   Nota: .section-hero/.sh-*, .timeline-*, .card-email-* ya están en team.css
         :root variables ya están en base.css
══════════════════════════════════════ */

/* ── Body offset (navbar fijo) ── */
body.page-template-page-asociado-detalle {
  padding-top: 76px;
}

/* ── Anular constraints del wp-block-group FSE ── */
.wp-block-group.asociado-detail-main {
  padding: 0 !important;
  max-width: none !important;
}

/* El hero necesita salir del contenedor de bloques */
.asociado-detail-main .section-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ── Hero: overrides de layout (equipo usa sh-right, asociado usa sh-breadcrumb) ── */
.asociado-detail-main .sh-inner {
  justify-content: space-between;
  gap: 40px;
}

.asociado-detail-main .sh-left {
  flex: 1;
}

.asociado-detail-main .sh-title {
  font-size: clamp(24px, 3.5vw, 42px);
  margin-bottom: 8px;
}

.sh-role {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sh-breadcrumb {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.06em;
  align-self: flex-end;
  padding-bottom: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sh-breadcrumb a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.sh-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Animaciones (no están en ningún otro CSS del tema) ── */
.anim-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.anim-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-up:nth-child(1) {
  transition-delay: 0ms;
}
.anim-up:nth-child(2) {
  transition-delay: 80ms;
}
.anim-up:nth-child(3) {
  transition-delay: 160ms;
}
.anim-up:nth-child(4) {
  transition-delay: 240ms;
}
.anim-up:nth-child(5) {
  transition-delay: 320ms;
}
.anim-up:nth-child(6) {
  transition-delay: 400ms;
}

/* ══════════════════════════════════════
   FICHA PRINCIPAL
══════════════════════════════════════ */
.ficha-section {
  background: #fff;
}

.ficha-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 38%;
}

/* FOTO */
.ficha-foto {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: linear-gradient(160deg, #b5d4f4 0%, #85b7eb 100%);
  order: 2;
}

.ficha-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.foto-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 26, 62, 0.45) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.foto-sq1 {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 13px;
  height: 13px;
  background: var(--blue);
  opacity: 0.7;
}
.foto-sq2 {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.3);
}

.ficha-foto-ph {
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #b5d4f4 0%, #85b7eb 100%);
}

.ficha-foto-ph span {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* DATOS */
.ficha-datos {
  padding: 44px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 0.5px solid var(--gray-lt);
  order: 1;
}

.datos-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.datos-nombre {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  color: var(--blue-xdk);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 10px;
}

.datos-rol {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid var(--gray-lt);
}

.datos-bio {
  font-size: 14px;
  color: #555;
  line-height: 1.85;
  margin-bottom: 24px;
}

/* Cuando datos-bio contiene HTML generado por WP (párrafos, listas, etc.) */
.datos-bio.bpp-content p {
  margin-bottom: 1em;
  font-size: 14px;
  color: #555;
  line-height: 1.85;
}
.datos-bio.bpp-content p:last-child {
  margin-bottom: 0;
}
.datos-bio.bpp-content ul,
.datos-bio.bpp-content ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
  font-size: 14px;
  color: #555;
  line-height: 1.85;
}
.datos-bio.bpp-content strong {
  font-weight: 600;
}
.datos-bio.bpp-content em {
  font-style: italic;
}

.datos-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.dtag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--blue-lt);
  padding: 4px 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: default;
}

.dtag:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* CONTACTO en ficha */
.datos-contact {
  padding-top: 20px;
  border-top: 0.5px solid var(--gray-lt);
}

.contact-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--gray-mid);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.contact-btn-li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-bottom: 10px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(27, 100, 200, 0.25);
  background: #fff;
  color: var(--blue-xdk);
  transition: all 0.2s;
}

.contact-btn-li:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.contact-btn-li:hover svg rect,
.contact-btn-li:hover svg circle,
.contact-btn-li:hover svg path {
  stroke: #fff !important;
  fill: #fff !important;
}

/* Copiar email */
.card-copy-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-lt);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.card-copy-btn:hover {
  border-color: var(--blue);
  background: var(--blue);
}
.card-copy-btn:hover svg rect,
.card-copy-btn:hover svg path {
  stroke: #fff !important;
}
.card-copy-btn .copy-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
.card-copy-btn.copied {
  border-color: var(--blue);
}
.card-copy-btn.copied .copy-check {
  opacity: 1;
}

/* ══════════════════════════════════════
   TABS NUEVA ESTRUCTURA
   (distinta de .asociado-tabs-section-wrap en team.css)
══════════════════════════════════════ */
.tabs-section-wrap {
  background: #fff;
}

.tabs-section {
  background: #fff;
  border-top: 1px solid var(--gray-lt);
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--gray-lt);
  padding: 0 80px;
  overflow-x: auto;
}

.tab-btn {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-mid);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 24px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.tab-btn:hover {
  color: var(--blue);
}
.tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.tab-panel {
  display: none;
  padding: 40px 80px 52px;
}
.tab-panel.active {
  display: block;
}

/* ══════════════════════════════════════
   TIMELINE — override de team.css para diseño mock
══════════════════════════════════════ */
.tab-panel .timeline-item {
  grid-template-columns: 80px 1fr;
}

/* ══════════════════════════════════════
   ACADÉMICA (Práctica, Actividad Académica)
══════════════════════════════════════ */
.academica-content {
  max-width: 760px;
}

.academica-block {
  margin-bottom: 32px;
}

.academica-block:last-child {
  margin-bottom: 0;
}

.academica-subtitle {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--blue);
  display: block;
}

.academica-subtitle--muted {
  color: #7b7b7b;
  letter-spacing: 0.08em;
  text-transform: none;
  font-weight: 500;
  font-size: 12px;
  border-bottom: 1px solid #d6d6d6;
  padding-bottom: 6px;
}

.academica-empty-note {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  color: #8f8f8f;
  letter-spacing: 0;
  text-transform: none;
  border: 0;
  padding: 0;
}

.academica-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.academica-list li {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}

.academica-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
}

/* ══════════════════════════════════════
   TAB CONTACTO
══════════════════════════════════════ */
.contacto-content {
  max-width: 560px;
}

.contacto-intro {
  font-size: 14px;
  color: #555;
  line-height: 1.85;
  margin-bottom: 28px;
}

.contacto-field {
  padding: 20px 24px;
  background: var(--area-bg);
  margin-bottom: 12px;
  border-left: 3px solid var(--blue);
}

.contacto-field-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.contacto-field-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--blue-xdk);
}

.contacto-field-value a {
  color: var(--blue-xdk);
  text-decoration: none;
  transition: color 0.2s;
}

.contacto-field-value a:hover {
  color: var(--blue);
}

/* Email row dentro del tab contacto */
.contacto-field .card-email-row {
  margin-top: 4px;
}
.contacto-field .card-email {
  font-size: 14px;
}
.contacto-field .card-copy-btn {
  width: 32px;
  height: 32px;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1179px) {
  .ficha-datos {
    padding: 32px 36px;
  }
  .tabs-nav {
    padding: 0 32px;
  }
  .tab-panel {
    padding: 32px 36px 44px;
  }
}

@media (max-width: 767px) {
  .ficha-inner {
    grid-template-columns: 1fr;
  }
  .ficha-foto,
  .ficha-foto-ph {
    min-height: 280px;
  }
  .ficha-datos {
    padding: 24px 20px;
    border-left: none;
    border-top: 0.5px solid var(--gray-lt);
  }
  .tabs-nav {
    padding: 0 20px;
  }
  .tab-btn {
    padding: 12px 16px;
    font-size: 10px;
  }
  .tab-panel {
    padding: 24px 20px 36px;
  }
  .tab-panel .timeline-item {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }
}
