/* Marcado de confianza: firma, fechas y caja de autor.
   Solo se carga en las páginas en alcance del módulo includes/confianza. Usa los tokens del tema
   (tdp-system.css) con valores de reserva, y no depende de tdp-single ni de tdp-categoria. */

.tdp-conf-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem 1.1rem;
  margin: 1rem 0 0;
  color: var(--ink-soft, #43547d);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.4;
}
.page-hero-grid .tdp-conf-meta { justify-content: flex-start; }
.tdp-conf-meta > span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.tdp-conf-meta svg { width: 15px; height: 15px; flex: none; }
.tdp-conf-meta time { color: var(--ocean, #1d3160); font-weight: 800; }
.tdp-conf-meta a {
  color: var(--ocean, #1d3160);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--coral, #d56b3b);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.tdp-conf-meta a:hover { color: var(--coral-texto, #a54d23); }
.tdp-conf-meta a:focus-visible { outline: 3px solid var(--coral, #d56b3b); outline-offset: 3px; border-radius: 4px; }

/* Caja de autor */
.tdp-conf-autor-sec { padding: 0 0 clamp(2rem, 5vw, 3.5rem); }
.tdp-conf-autor {
  display: block;
  background: #fff;
  border: 1px solid var(--line, #e6dfcf);
  border-left: 6px solid var(--coral, #d56b3b);
  border-radius: 18px;
  padding: 1.3rem 1.6rem 1.4rem;
  margin: 2.6rem 0;
  box-shadow: 0 6px 22px -14px rgba(29, 49, 96, .35);
}
.tdp-conf-autor-sec .tdp-conf-autor { margin: 0; }
.tdp-conf-kicker {
  display: block;
  font-family: var(--font-script, 'Caveat', cursive);
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--coral-texto, #a54d23);
}
.tdp-conf-nombre {
  margin: .1rem 0 .35rem;
  font-family: var(--font-display, system-ui, sans-serif);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ocean, #1d3160);
}
.tdp-conf-nombre a { color: inherit; text-decoration: none; }
.tdp-conf-nombre a:hover { text-decoration: underline; text-decoration-color: var(--coral, #d56b3b); text-underline-offset: 3px; }
.tdp-conf-texto {
  margin: 0 0 .6rem;
  font-size: .94rem;
  line-height: 1.6;
  color: var(--ink-soft, #43547d);
  max-width: 62ch;
}
.tdp-conf-mas {
  font-size: .9rem;
  font-weight: 700;
  color: var(--coral-texto, #a54d23);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tdp-conf-mas:hover { color: var(--ocean, #1d3160); }
@media (max-width: 600px) {
  .tdp-conf-autor { padding: 1.1rem 1.1rem 1.2rem; }
}

/* En cabeceras en rejilla (páginas de equipo y peceras) la firma va alineada a la izquierda, con aire antes de la entradilla */
.page-hero-grid .tdp-conf-meta { margin: .9rem 0 1.1rem; }
/* La caja suelta (páginas sin columna de texto) no ocupa todo el ancho */
.tdp-conf-autor-sec .tdp-conf-autor { max-width: 820px; margin-inline: auto; }

/* ============================================================
   Fila de migas + fechas (a la derecha; en móvil, debajo)
   ============================================================ */
.tdp-conf-fila {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1.5rem;
}
.tdp-conf-fechas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .9rem;
  margin-left: auto;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--muted, #565f7d);
}
.tdp-conf-fecha {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}
.tdp-conf-fecha:not(:last-child)::after {
  content: "·";
  margin-left: .9rem;
  color: var(--coral, #d56b3b);
  font-weight: 800;
}
.tdp-conf-fecha svg { width: 13px; height: 13px; flex: none; stroke-width: 1.7; opacity: .85; }
.tdp-conf-fecha time { color: var(--ink-soft, #43547d); font-weight: 700; }
@media (max-width: 640px) {
  .tdp-conf-fechas { margin-left: 0; flex-basis: 100%; }
}

/* ============================================================
   Carruseles de [tdpf_guias_autor]
   ============================================================ */
.tdp-conf-guias { margin-top: .5rem; }
.tdp-conf-carr { margin: 0 0 2rem; }
.tdp-conf-carr-cab { display: flex; align-items: center; gap: .8rem; margin: 0 0 .7rem; }
.tdp-conf-carr-cab h3 { margin: 0; font-size: 1.2rem; }
.tdp-conf-carr-n {
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: .78rem;
  font-weight: 800;
  color: var(--coral-texto, #a54d23);
  background: rgba(213, 107, 59, .14);
  border-radius: 999px;
  padding: .12rem .65rem;
  white-space: nowrap;
}
.tdp-conf-carr-ctl { margin-left: auto; display: flex; gap: .4rem; }
.tdp-conf-carr-ctl[hidden] { display: none; }
.tdp-conf-carr-ctl button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-cream, #e6ddcb);
  background: #fff;
  color: var(--ocean, #1d3160);
  cursor: pointer;
  transition: background .15s, color .15s, opacity .15s;
}
.tdp-conf-carr-ctl button:hover:not(:disabled) { background: var(--ocean, #1d3160); color: #fff; }
.tdp-conf-carr-ctl button:disabled { opacity: .35; cursor: default; }
.tdp-conf-carr-ctl button:focus-visible,
.tdp-conf-carr-lista:focus-visible { outline: 3px solid var(--coral, #d56b3b); outline-offset: 3px; }
.tdp-conf-guias .tdp-conf-carr-lista {
  list-style: none;
  margin: 0;
  padding: .3rem .25rem 1rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: .25rem;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--sky-2, #a7c9e8) transparent;
}
.tdp-conf-guias .tdp-conf-carr-lista > li.tdp-conf-tarjeta {
  flex: 0 0 clamp(170px, 68vw, 248px);
  width: clamp(170px, 68vw, 248px);
  min-width: 0;
  max-width: 248px;
  scroll-snap-align: start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tdp-conf-guias .tdp-conf-tarjeta::before, .tdp-conf-guias .tdp-conf-tarjeta::after, .tdp-conf-guias .tdp-conf-tarjeta::marker { content: none !important; }
.tdp-conf-guias .tdp-conf-tarjeta a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line-cream, #e6ddcb);
  border-radius: 16px;
  overflow: hidden;
  color: var(--ocean, #1d3160);
  text-decoration: none !important;
  font-weight: inherit;
  box-shadow: var(--shadow-soft, 0 12px 30px -18px rgba(21, 36, 74, .3));
  transition: transform .2s, box-shadow .2s;
}
.tdp-conf-guias .tdp-conf-tarjeta a:hover { transform: translateY(-3px); box-shadow: var(--shadow, 0 22px 50px -26px rgba(21, 36, 74, .45)); }
.tdp-conf-guias .tdp-conf-tarjeta a:focus-visible { outline: 3px solid var(--coral, #d56b3b); outline-offset: 2px; }
.tdp-conf-pic { display: block; width: 100%; min-width: 0; aspect-ratio: 4 / 3; background: var(--cream-2, #efe7d6); overflow: hidden; }
.tdp-conf-img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; }
.tdp-conf-guias .tdp-conf-tit {
  color: var(--ocean, #1d3160);
  display: block;
  flex: 1 0 auto;
  padding: .75rem .9rem .55rem;
  font-family: var(--font-display, system-ui, sans-serif);
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.3;
}
.tdp-conf-tit-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tdp-conf-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  padding: 1rem;
  text-align: center;
  font-family: var(--font-display, system-ui, sans-serif);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #fff;
}
.tdp-conf-ph-0 { background: var(--ocean, #1d3160); }
.tdp-conf-ph-1 { background: var(--coral-fondo, #bb5728); }
.tdp-conf-ph-2 { background: var(--sea-oscuro, #358261); }
.tdp-conf-ph-3 { background: var(--ink-soft, #43547d); }
/* Botón visual dentro de cada tarjeta (la tarjeta entera es el único enlace) */
.tdp-conf-guias .tdp-conf-btn {
  align-self: flex-start;
  margin: auto .9rem .95rem;
  padding: .45rem 1rem;
  gap: .4rem;
  font-size: .72rem;
  line-height: 1.2;
  pointer-events: none;
}
.tdp-conf-guias .tdp-conf-tarjeta a:hover .tdp-conf-btn,
.tdp-conf-guias .tdp-conf-tarjeta a:focus-visible .tdp-conf-btn { background: var(--ocean, #1d3160); color: #fff; }

/* Con JS: sin barra de scroll (puntos en su lugar), cursor de arrastre y sin encaje mientras se arrastra */
.tdp-conf-carr.tdp-conf-js .tdp-conf-carr-lista {
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.tdp-conf-carr.tdp-conf-js .tdp-conf-carr-lista::-webkit-scrollbar { display: none; width: 0; height: 0; }
.tdp-conf-carr.tdp-conf-js .tdp-conf-carr-lista.tdp-conf-arrastrando {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}
.tdp-conf-carr .tdp-conf-img { -webkit-user-drag: none; user-select: none; }
.tdp-conf-puntos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: -.2rem 0 0;
}
.tdp-conf-puntos[hidden] { display: none; }
.tdp-conf-punto {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--sky-2, #a7c9e8);
  cursor: pointer;
  transition: width .2s, background .2s;
}
.tdp-conf-punto::after { content: ""; position: absolute; inset: -9px -4px; }
.tdp-conf-punto[aria-current="true"] { width: 26px; background: var(--coral, #d56b3b); }
.tdp-conf-punto:hover:not([aria-current="true"]) { background: var(--ocean, #1d3160); }
.tdp-conf-punto:focus-visible { outline: 3px solid var(--coral, #d56b3b); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .tdp-conf-punto { transition: none; }
  .tdp-conf-guias .tdp-conf-tarjeta a { transition: none; }
  .tdp-conf-guias .tdp-conf-tarjeta a:hover { transform: none; }
}

/* ============================================================
   Página de autor (.tdp-autor)
   ============================================================ */
.tdp-autor-intro {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 0 2.4rem;
  padding: 1.6rem 1.9rem;
  background: #fff;
  border: 1px solid var(--line-cream, #e6ddcb);
  border-radius: 22px;
  box-shadow: var(--shadow-soft, 0 12px 30px -18px rgba(21, 36, 74, .3));
}
.tdp-autor-mono {
  display: grid;
  place-items: center;
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--ocean, #1d3160);
  color: var(--cream, #f6f1e6);
  font-family: var(--font-display, system-ui, sans-serif);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: .05em;
  box-shadow: 0 0 0 5px var(--sky, #bcd6ec);
  user-select: none;
}
.tdp-autor-intro .lede {
  margin: 0;
  max-width: none;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink, #1d3160);
  text-align: left;
}
.tdp-autor h2 { position: relative; margin-top: 2.6rem; padding-bottom: .55rem; }
.tdp-autor h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: var(--coral, #d56b3b);
}
.tdp-autor-fuentes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
  margin: 1.2rem 0 0;
}
.tdp-autor-fuente {
  padding: 1.2rem 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid var(--line-cream, #e6ddcb);
  border-radius: 18px;
  box-shadow: var(--shadow-soft, 0 12px 30px -18px rgba(21, 36, 74, .3));
}
.tdp-autor-fuente::before {
  content: "";
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: .8rem;
  border-radius: 14px;
  background-color: var(--cream, #f6f1e6);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px 26px;
}
.tdp-autor-fuente:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d3160' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12c3-5 8-6 12-3l4-3v12l-4-3c-4 3-9 2-12-3z'/%3E%3Ccircle cx='8' cy='11' r='.8'/%3E%3C/svg%3E"); }
.tdp-autor-fuente:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d3160' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-8-4.7-9.2-10A4.9 4.9 0 0 1 12 7.8a4.9 4.9 0 0 1 9.2 2.7c-1.2 5.3-9.2 10-9.2 10z'/%3E%3C/svg%3E"); }
.tdp-autor-fuente:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d3160' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h8M18 7h2M4 17h2M12 17h8'/%3E%3Ccircle cx='15' cy='7' r='2'/%3E%3Ccircle cx='9' cy='17' r='2'/%3E%3C/svg%3E"); }
.tdp-autor-fuente:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d3160' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6L5 8z'/%3E%3Cpath d='M9 8a3 3 0 0 1 6 0'/%3E%3C/svg%3E"); }
.tdp-autor-fuente h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.tdp-autor-fuente p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--ink-soft, #43547d); }
.tdp-autor-nota {
  margin: 2.6rem 0 0;
  padding: 1.4rem 1.7rem 1.5rem;
  background: var(--cream, #f6f1e6);
  border: 1px solid var(--line-cream, #e6ddcb);
  border-left: 6px solid var(--coral, #d56b3b);
  border-radius: 18px;
}
.tdp-autor-nota h2 { margin: 0 0 .5rem; font-size: 1.3rem; padding-bottom: 0; }
.tdp-autor-nota h2::after { content: none; }
.tdp-autor-nota p { margin: 0; }
@media (max-width: 600px) {
  .tdp-autor-intro { flex-direction: column; text-align: center; padding: 1.4rem 1.2rem; }
  .tdp-autor-intro .lede { text-align: center; }
}
