/* === Founders block — colophon editorial / authorship statement ===
   Cargado de forma no-blocking solo en páginas que incluyen el partial
   includes/content/_partials/founders-block-es.php.
   Diseño: SF Pro + ui-monospace, paper-warm background, accent naranja
   restrained. Microdata Schema.org/AboutPage + Person en el HTML. */

/* SECTION SHELL */
.sp-authors-section {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 1.25rem;
  background: linear-gradient(180deg, #faf8f3 0%, #fdfcf8 100%);
  overflow: hidden;
  isolation: isolate;
}
.sp-authors-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0, #ed6e13 30%, #ed6e13 70%, transparent 100%);
  opacity: 0.45;
}

.sp-authors-wrapper {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

/* HEADER — colophon masthead */
.sp-authors-header {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  border-bottom: 1px solid rgba(29, 54, 69, 0.12);
}
.sp-authors-eyebrow {
  margin: 0 0 1.125rem;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(29, 54, 69, 0.55);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sp-authors-eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: rgba(237, 110, 19, 0.65);
}
.sp-authors-title {
  margin: 0 0 1.125rem;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2rem, 4.5vw, 2.875rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: #1d3645;
}
.sp-authors-deck {
  max-width: 38em;
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(29, 54, 69, 0.78);
}

/* Masthead metadata */
.sp-authors-meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem 2.25rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(29, 54, 69, 0.22);
}
.sp-authors-meta-item {
  display: flex;
  flex-direction: column;
  position: relative;
}
.sp-authors-meta-item:not(:first-child)::before {
  content: '';
  position: absolute;
  left: -1.125rem;
  top: 0.125rem;
  bottom: 0.125rem;
  width: 1px;
  background: rgba(29, 54, 69, 0.1);
}
@media (max-width: 600px) {
  .sp-authors-meta-item:not(:first-child)::before { display: none; }
}
.sp-authors-meta-item dt {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(29, 54, 69, 0.5);
  margin: 0 0 0.4375rem;
  font-weight: 500;
}
.sp-authors-meta-item dd {
  margin: 0;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1d3645;
  letter-spacing: 0.005em;
}

/* AUTHOR ENTRIES */
.sp-authors-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.sp-author-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
}
.sp-author-entry + .sp-author-entry {
  border-top: 1px solid rgba(29, 54, 69, 0.08);
}
@media (min-width: 720px) {
  .sp-author-entry {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
  }
}

/* META COLUMN */
.sp-author-meta-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .sp-author-meta-col {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.125rem;
    padding-top: 0.375rem;
  }
}
.sp-author-portrait {
  margin: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #1d3645;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 4px 14px rgba(29, 54, 69, 0.12);
  transition: box-shadow 0.3s ease;
}
@media (min-width: 720px) {
  .sp-author-portrait {
    width: 104px;
    height: 104px;
  }
}
.sp-author-entry:hover .sp-author-portrait {
  box-shadow: 0 0 0 2px #ed6e13, 0 8px 22px rgba(237, 110, 19, 0.18);
}
.sp-author-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sp-author-portrait--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1d3645 0%, #2c4a5d 100%);
  color: #fff;
  font-family: -apple-system, "SF Pro Display", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
@media (min-width: 720px) {
  .sp-author-portrait--initials { font-size: 2rem; }
}
.sp-author-meta-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 720px) {
  .sp-author-meta-text { gap: 0.625rem; }
}
.sp-author-num,
.sp-author-role {
  margin: 0;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.2;
}
.sp-author-num {
  color: #ed6e13;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
@media (min-width: 720px) {
  .sp-author-num::before {
    content: '';
    width: 1.25rem;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
  }
}
.sp-author-role { color: rgba(29, 54, 69, 0.55); }

/* CONTENT COLUMN */
.sp-author-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}
.sp-author-name {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: #1d3645;
}
.sp-author-bio {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(29, 54, 69, 0.86);
  max-width: 38em;
}

/* Stack chips */
.sp-author-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.sp-author-stack-label {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(29, 54, 69, 0.5);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.sp-author-stack-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(29, 54, 69, 0.1);
}
.sp-author-stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4375rem 0.5rem;
}
.sp-author-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.625rem;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #1d3645;
  background: rgba(29, 54, 69, 0.04);
  border: 1px solid rgba(29, 54, 69, 0.1);
  border-radius: 0.375rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.sp-author-chip:hover {
  border-color: rgba(237, 110, 19, 0.5);
  background: rgba(237, 110, 19, 0.06);
}

/* Identity link */
.sp-author-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  align-self: flex-start;
  margin-top: 0.25rem;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1d3645;
  text-decoration: none;
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(29, 54, 69, 0.24);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sp-author-link:hover,
.sp-author-link:focus-visible {
  color: #ed6e13;
  border-bottom-color: #ed6e13;
  outline: none;
}
.sp-author-link:focus-visible {
  outline: 2px solid rgba(237, 110, 19, 0.4);
  outline-offset: 4px;
  border-radius: 2px;
}
.sp-author-link-arrow {
  font-size: 0.875rem;
  transition: transform 0.2s ease;
}
.sp-author-link:hover .sp-author-link-arrow,
.sp-author-link:focus-visible .sp-author-link-arrow {
  transform: translateX(3px);
}

/* Footnote */
.sp-authors-footer {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(29, 54, 69, 0.22);
}
.sp-authors-footnote {
  margin: 0;
  font-size: 0.8125rem;
  font-style: italic;
  line-height: 1.6;
  color: rgba(29, 54, 69, 0.62);
  max-width: 42em;
}
.sp-authors-footnote a {
  color: rgba(29, 54, 69, 0.82);
  text-decoration: underline;
  text-decoration-color: rgba(29, 54, 69, 0.28);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.sp-authors-footnote a:hover {
  color: #ed6e13;
  text-decoration-color: #ed6e13;
}

/* Identity lead — frase atómica citable (también usada en hero Lima) */
.sp-identity-lead {
  max-width: 820px;
  margin: 1.5rem 0 0;
  padding: 0.875rem 1.125rem;
  background: rgba(245, 166, 35, 0.04);
  border-left: 3px solid #ed6e13;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #1d3645;
}
/* Variant para fondo oscuro (hero de /pe/lima/) */
.sp-identity-lead--on-dark {
  margin: 1.5rem auto 2.5rem;
  background: rgba(245, 166, 35, 0.08);
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  .sp-author-portrait,
  .sp-author-chip,
  .sp-author-link,
  .sp-author-link-arrow,
  .sp-authors-footnote a { transition: none; }
}
