/* ══════════════════════════════════════
   BARDEO POST SINGLE — bardeo-single.css
══════════════════════════════════════ */

/* ── Wrapper general ── */
.bardeo-wrap {
  margin-top: 58px;
  background: var(--blanco);
}

/* ── Layout: contenido + sidebar ── */
.bardeo-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  padding: 2.5rem 5%;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

/* ════════════════════════════════
   COLUMNA PRINCIPAL
════════════════════════════════ */
.bardeo-main {}

/* Breadcrumb */
.breadcrumb-bardeo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #aaa;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.breadcrumb-bardeo a { color: #aaa; text-decoration: none; transition: color .2s; }
.breadcrumb-bardeo a:hover { color: var(--negro); }
.breadcrumb-bardeo svg { width: 10px; flex-shrink: 0; }

/* ── Header del post ── */
.post-header {
  margin-bottom: 1.8rem;
  /* Reset del selector global header */
  position: static;
  height: auto;
  display: block;
  background: none;
  backdrop-filter: none;
  border-bottom: none;
  padding: 0;
  z-index: auto;
}

.post-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.post-source {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 0;
}
.post-source img {
  height: 18px;
  width: auto;
  display: block;
}
.post-cat-pill {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--verde-mid);
  background: var(--fondo-blog);
  border: 1px solid var(--gris-border);
  padding: 3px 10px;
  border-radius: 20px;
}
.post-date {
  font-size: 0.75rem;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 5px;
}
.post-date svg { width: 12px; }

.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--negro);
  line-height: normal;
  margin-bottom: 1rem;
}

.post-entradilla {
  font-size: 1.05rem;
  color: var(--gris-texto);
  line-height: 1.7;
  border-left: 3px solid var(--lima);
  padding-left: 1.1rem;
  margin-bottom: 0;
}

/* ── Imagen destacada ── */
.post-featured-img {
  margin-bottom: 2rem;
}
.post-featured-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.post-img-caption {
  font-size: 0.72rem;
  color: #aaa;
  margin-top: 0.5rem;
  line-height: 1.5;
  padding-left: 2px;
}

/* ── Acciones ── */
.post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 0;
  border-top: 1px solid var(--gris-border);
  border-bottom: 1px solid var(--gris-border);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.post-action-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gris-texto);
  margin-right: 2px;
}
.post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 6px;
  border: 1.5px solid var(--gris-border);
  background: var(--blanco);
  color: var(--gris-texto);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.post-share-btn:hover { border-color: var(--verde-mid); color: var(--negro); }
.post-share-btn svg { width: 13px; }
.post-read-time {
  margin-left: auto;
  font-size: 0.72rem;
  color: #aaa;
  white-space: nowrap;
}

/* ════════════════════════════════
   CUERPO DEL ARTÍCULO
════════════════════════════════ */
.post-body {
  font-size: 0.97rem;
  line-height: 1.85;
  color: #2a2a28;
}

.post-body p {
  margin-bottom: 1.4em;
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--negro);
  line-height: normal;
  margin: 2.2em 0 0.7em;
}

.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--negro);
  line-height: normal;
  margin: 1.8em 0 0.5em;
}

/* Imagen inline con caption */
.post-body figure {
  margin: 2em 0;
}
.post-body figure img {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.post-body figcaption {
  font-size: 0.72rem;
  color: #aaa;
  margin-top: 0.5rem;
  line-height: 1.5;
  padding-left: 2px;
}

/* Blockquote */
.post-body blockquote {
  margin: 2em 0;
  padding: 1.4rem 1.6rem;
  background: var(--verde-pastel);
  border-left: 4px solid var(--verde-mid);
  border-radius: 0 8px 8px 0;
}
.post-body blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--negro);
  margin-bottom: 0.4em;
  line-height: 1.7;
}
.post-body blockquote cite {
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  color: var(--verde-mid);
}

/* Tabla */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.88rem;
}
.post-body th {
  background: var(--verde);
  color: var(--lima);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-align: left;
  padding: 10px 14px;
}
.post-body td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--gris-border);
  color: var(--gris-texto);
  vertical-align: top;
}
.post-body tr:last-child td { border-bottom: none; }
.post-body tr:nth-child(even) td { background: var(--fondo-episodios); }

.post-body a {
  color: var(--verde-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s;
}
.post-body a:hover {
  color: var(--verde);
}

/* Video embebido inline */
.post-video-wrap {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  margin: 2em 0;
  background: #000;
  box-shadow: 0 6px 32px rgba(0,0,0,0.12);
}
.post-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── CTA box ── */
.post-cta-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--verde-pastel);
  border-left: 4px solid var(--verde-mid);
  border-radius: 0 8px 8px 0;
}
.post-cta-img {
  flex: 0 0 220px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 6px;
}
.post-cta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-cta-body {
  flex: 1;
  min-width: 0;
}
.post-cta-text {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--negro);
}
.post-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--verde-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.post-cta-link:hover {
  color: var(--verde);
}
@media (max-width: 767px) {
  .post-cta-box { flex-direction: column; }
  .post-cta-img { flex: none; width: 100%; }
}

/* ── Tags ── */
.post-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--gris-border);
}
.post-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--gris-border);
  color: var(--gris-texto);
  text-decoration: none;
  transition: all .2s;
}
.post-tag:hover { border-color: var(--verde-mid); color: var(--negro); background: var(--verde-pastel); }

/* ── Firma del autor ── */
.post-author-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--fondo-blog);
  border: 1px solid var(--gris-border);
  border-radius: 12px;
  padding: 1.5rem 1.6rem;
  margin-top: 2rem;
}
.post-author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--verde);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-author-info { flex: 1; }
.post-author-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.3rem;
  display: block;
}
.post-author-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}
.post-author-name span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--negro);
}
.post-author-name img {
  height: 20px;
  width: auto;
  display: block;
}
.post-author-bio {
  font-size: 0.82rem;
  color: var(--gris-texto);
  line-height: 1.65;
}

/* ════════════════════════════════
   SIDEBAR
════════════════════════════════ */
.bardeo-sidebar {
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Notas relacionadas ── */
.related-box {
  background: var(--blanco);
  border: 1px solid var(--gris-border);
  border-radius: 12px;
  overflow: hidden;
}
.related-box-header {
  padding: 1rem 1.2rem 0.8rem;
  border-bottom: 1px solid var(--gris-border);
}
.related-box-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--negro);
  line-height: normal;
}
.related-post {
  display: flex;
  gap: 0.8rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--gris-border);
  text-decoration: none;
  transition: background .2s;
}
.related-post:last-child { border-bottom: none; }
.related-post:hover { background: var(--fondo-episodios); }
.related-post-thumb {
  width: 68px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.related-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.related-post-info { flex: 1; }
.related-post-cat {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--verde-mid);
  display: block;
  margin-bottom: 3px;
}
.related-post-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--negro);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-post-date {
  font-size: 0.68rem;
  color: #aaa;
  margin-top: 4px;
  display: block;
}

/* ── Newsletter ── */
.nl-box {
  background: var(--verde);
  border-radius: 10px;
  padding: 1.4rem;
}
.nl-box-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lima);
  margin-bottom: 0.5rem;
}
.nl-box h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: normal;
  margin-bottom: 0.4rem;
}
.nl-box p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.nl-box .nl-form { display: flex; flex-direction: column; gap: 8px; }
.nl-box .nl-input {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 9px 13px;
  font-size: 0.82rem;
  color: #fff;
  outline: none;
  font-family: var(--font-primary);
  width: 100%;
}
.nl-box .nl-input::placeholder { color: rgba(255,255,255,0.28); }
.nl-box .nl-btn {
  border-radius: 6px;
  padding: 9px 16px;
  width: 100%;
  font-size: 0.82rem;
}

/* WPForms dentro del nl-box (fondo verde oscuro) */
.nl-box .wpforms-container input[type=email],
.nl-box .wpforms-container input[type=text] {
  background: rgba(255,255,255,0.09) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 6px !important;
  padding: 9px 13px !important;
  font-size: 0.82rem !important;
  color: #fff !important;
  font-family: var(--font-primary) !important;
  width: 100% !important;
  box-shadow: none !important;
  min-height: unset !important;
}
.nl-box .wpforms-container input::placeholder { color: rgba(255,255,255,0.3) !important; }
.nl-box .wpforms-container input:focus {
  border-color: var(--lima) !important;
  outline: none !important;
}
.nl-box .wpforms-container .wpforms-field-label {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.65) !important;
  margin-bottom: 0.35rem !important;
}
.nl-box .wpforms-container .wpforms-submit {
  background: var(--lima-btn) !important;
  color: var(--negro) !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 9px 16px !important;
  width: 100% !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  font-family: var(--font-primary) !important;
  cursor: pointer !important;
  transition: background .2s !important;
}
.nl-box .wpforms-container .wpforms-submit:hover { background: #bfe040 !important; }
.nl-box .wpforms-container .wpforms-field { margin-bottom: 0.75rem !important; }
.nl-box .wpforms-container .wpforms-submit-container { margin-top: 0.25rem !important; }
.nl-box .wpforms-container .wpforms-error {
  display: block !important;
  font-size: 0.72rem !important;
  color: #f4a261 !important;
  margin-top: 4px !important;
  font-weight: 500 !important;
}
.nl-box .wpforms-confirmation-container-full {
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.85);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
}

/* ── Ad box sidebar ── */
.ad-sidebar-box {
  background: var(--crema);
  border: 1.5px dashed var(--gris-border);
  border-radius: 8px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #bbb;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ════════════════════════════════
   AD ENTRE CONTENIDO Y RELACIONADOS
════════════════════════════════ */
.ad-bardeo-wrap {
  padding: 2rem 5%;
  display: flex;
  justify-content: center;
  background: var(--fondo-episodios);
  border-top: 1px solid var(--gris-border);
  border-bottom: 1px solid var(--gris-border);
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 960px) {
  .bardeo-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .bardeo-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  .related-box { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .bardeo-layout { padding: 1.5rem 5%; }
  .bardeo-sidebar { grid-template-columns: 1fr; }
  .post-title { font-size: 1.5rem; }
  .post-body h2 { font-size: 1.2rem; }
  .post-author-card { flex-direction: column; }
}
