/* Helpers */
.sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* Base */
.single{
  padding: 18px 0 40px;
}

/* Header */
.single-header{
  max-width: 900px;
  margin: 0 auto 14px;
  text-align: left;
}

.single-title{
  color:003366 ;
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 900;
}

.single-meta{
  font-size: 12px;
  color: #777;
  display:flex;
  align-items:center;
  gap: 8px;
}

/* Imagen portada (full width visual) */
.single-thumb-full{
  width: 100%;
  margin: 12px 0 18px;
}

.single-thumb{
  max-width: 1200px;   /* más ancho que el texto */
  margin: 0 auto;
}

.single-thumb img{
  width: 100%;
  height: 520px;       /* recorte editorial */
  object-fit: cover;
  display: block;
}

/* Grid contenido + sidebar */
.single-grid{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

/* Contenido */
.single-content{
  font-size: 16px;
  line-height: 1.75;
  color: #222;
}

.single-content p{ margin: 0 0 16px; }

.single-content h2{
  margin: 26px 0 10px;
  font-size: 22px;
}

.single-content h3{
  margin: 22px 0 10px;
  font-size: 18px;
}

.single-content img{
  max-width: 100%;
  height: auto;
}

/* Embeds responsivos */
.single-content iframe,
.single-video-embed iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
}

/* Sidebar */
.single-sidebar{
  position: sticky;
  top: 18px;
}

/* Widgets del sidebar */
.single-sidebar .widget{
  border: 1px solid #eee;
  padding: 14px;
  margin-bottom: 16px;
  background: #fff;
}

.single-sidebar .widget-title{
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #b3262e;
}

.single-sidebar img{
  max-width: 100%;
  height: auto;
  display: block;
}

/* Comentarios */
.single-comments{
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

/* Relacionados */
.single-related{
  max-width: 1200px;
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

.related-title{
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.related-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-thumb img{
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.related-post-title{
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 800;
}

.related-post-title a{
  text-decoration: none;
  color: #111;
}

.related-post-title a:hover{
  text-decoration: underline;
}

/* Single video */
.single-video{
  max-width: 900px;
  margin: 0 auto;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px){

  .single{
    padding-top: 10px;
  }

  .single-header{
    padding: 0 16px;
    margin-bottom: 12px;
  }

  .single-title{
    font-size: 26px;
    line-height: 1.2;
    margin-top: 16px;
    margin-bottom: 6px;
  }

  .single-meta{
    font-size: 12px;
    margin-bottom: 10px;
  }

  .single-thumb-full{
    margin: 8px 0 14px;
  }

  .single-thumb{
    max-width: 100%;
    margin: 0 auto;
  }

  .single-thumb img{
    height: 260px; /* evita que se coma toda la pantalla */
  }

  .single-grid{
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .single-sidebar{
    position: static;
    top: auto;
  }

  .related-grid{
    grid-template-columns: 1fr;
  }

  .related-thumb img{
    height: 180px;
  }
}
/* =========================
   BOTÓN ENVIAR COMENTARIO
   ========================= */

.comment-form input[type="submit"],
#submit {
  background: #2ecc71;
  color: #fff;
  border: none;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease, box-shadow .2s ease;
}

/* Hover */
.comment-form input[type="submit"]:hover,
#submit:hover {
  background: #27ae60;
  box-shadow: 0 6px 18px rgba(46, 204, 113, 0.25);
}

/* Active (click) */
.comment-form input[type="submit"]:active,
#submit:active {
  transform: scale(0.97);
}

/* En móvil, botón full width */
@media (max-width: 768px) {
  .comment-form input[type="submit"],
  #submit {
    width: 100%;
    text-align: center;
  }
}
/* =========================
   DARK MODE – SINGLE CONTENT
   ========================= */

html.dark .single{
  background: #0f1414;
}

/* Texto principal */
html.dark .single-content{
  color: #e4eaea;
}

/* Párrafos */
html.dark .single-content p{
  color: #d6dddd;
}

/* Encabezados dentro del contenido */
html.dark .single-content h2,
html.dark .single-content h3,
html.dark .single-content h4{
  color: #ffffff;
}

/* Enlaces dentro del contenido */
html.dark .single-content a{
  color: #2ecc71;
}

html.dark .single-content a:hover{
  color: #6ee7b7;
  text-decoration: underline;
}

/* Citas */
html.dark .single-content blockquote{
  border-left: 4px solid #2ecc71;
  background: #121919;
  color: #cfe3e3;
}

/* Listas */
html.dark .single-content ul,
html.dark .single-content ol{
  color: #d6dddd;
}

/* Separadores */
html.dark .single-content hr{
  border-color: #1f2f2f;
}

/* =========================
   META (fecha / autor)
   ========================= */
html.dark .single-meta{
  color: #9fb3b3;
}

/* =========================
   IMÁGENES DENTRO DEL TEXTO
   ========================= */
html.dark .single-content img{
  filter: brightness(0.95) contrast(1.05);
}
html.dark .single-content{
  max-width: 680px;
}
/* =========================
   COMPARTIR – SINGLE
   ========================= */

.single-share{
  max-width: 900px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-label{
  font-size: 16px;
  font-weight: 700;
  color: #b3262e;
  margin-right: 6px;
}

.share-btn{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #f1f1f1;
  transition: all .2s ease;
}

.share-btn i{
  font-size: 14px;
  color: #111;
}

/* Hover */
.share-btn:hover{
  transform: translateY(-2px);
}

/* Colores por red */
.share-btn.twitter:hover{ background:#000; }
.share-btn.facebook:hover{ background:#1877f2; }
.share-btn.linkedin:hover{ background:#0a66c2; }
.share-btn.email:hover{ background:#b3262e; }

.share-btn:hover i{
  color:#fff;
}

/* Dark mode */
html.dark .single-share .share-label{
  color:#aaa;
}

html.dark .share-btn{
  background:#1f2a2a;
}

html.dark .share-btn i{
  color:#eaeaea;
}
@media (max-width: 900px){
  .single-share{
    padding-right: 0;
    padding-left: 16px;
  }
}
/* Quitar caja visual de widgets en single */
.single-sidebar .widget{
  border: 0;
  background: transparent;
  padding: 0;
}
/* Banners en widgets: bordes redondeados */
.single-sidebar .widget img{
  border-radius: 14px;
  display: block;
}
/* =========================
   SIDEBAR: Entradas recientes + Secciones (mismo estilo)
   ========================= */

/* Quitar viñetas y espacios raros a listas del sidebar */
.single-sidebar ul,
.home-sidebar ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Títulos (Entradas recientes / Secciones) */
.single-sidebar .widget-title,
.home-sidebar .widget-title,
.home-sections .section-title{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: none; /* si lo quieres normal */
  color: #b3262e;
}

/* ===== Links: mismo estilo en ambos ===== */
.single-sidebar .widget_recent_entries a,
.home-sections .sections-list a{
  color: #111;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
}

/* Espaciado entre items */
.single-sidebar .widget_recent_entries li,
.home-sections .sections-list li{
  margin: 0 0 6px;
}

/* Subrayado SOLO al hover (línea que se “dibuja”) */
.single-sidebar .widget_recent_entries a::after,
.home-sections .sections-list a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #b3262e;
  transition: width .2s ease;
}

.single-sidebar .widget_recent_entries a:hover::after,
.home-sections .sections-list a:hover::after{
  width: 100%;
}

/* ===== Dark mode ===== */
html.dark .single-sidebar .widget_recent_entries a,
html.dark .home-sections .sections-list a{
  color: #eaeaea;
}

html.dark .single-sidebar .widget_recent_entries a::after,
html.dark .home-sections .sections-list a::after{
  background: #2ecc71;
}

/* Opcional: darle un poquito de aire al bloque Secciones */
.home-sections{
  margin-top: 16px;
}

/* colosres del sidebar*/

/* =========================
   SINGLE SIDEBAR: Entradas recientes + Secciones—all pro
   Estructura real:
   - Entradas recientes: .widget_recent_entries
   - Secciones: .widget_block + .sections-list
   ========================= */

.single-sidebar .widget{
  /* si quieres conservar tu caja, no toques esto */
}

/* Quitar viñetas y espacios a CUALQUIER lista del sidebar */
.single-sidebar ul{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Separación entre items (compacto) */
.single-sidebar li{
  margin: 0 0 6px !important;
  line-height: 1.35 !important;
}

/* ======= TÍTULOS ======= */
/* Título de widgets nativos: "Entradas recientes" */
.single-sidebar .widget-title{
  margin: 0 0 10px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #111 !important;
}

/* Título de tu widget_block: "Secciones" (tu h3 custom) */
.single-sidebar .widget_block .section-title{
  margin: 18px 0 10px !important; /* baja un pelo y separa del bloque anterior */
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  color: #b3262e !important;
}

/* ======= LINKS (Entradas recientes + Secciones) ======= */
.single-sidebar .widget_recent_entries a,
.single-sidebar .widget_block .sections-list a{
  color: #111 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  display: inline-block !important;
  position: relative !important;
  padding-bottom: 2px !important;
}

/* Subrayado animado SOLO al hover */
.single-sidebar .widget_recent_entries a::after,
.single-sidebar .widget_block .sections-list a::after{
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 0 !important;
  height: 2px !important;
  background: #b3262e !important;
  transition: width .2s ease !important;
}

.single-sidebar .widget_recent_entries a:hover::after,
.single-sidebar .widget_block .sections-list a:hover::after{
  width: 100% !important;
}

/* ======= DARK MODE ======= */
html.dark .single-sidebar .widget-title{
  color: #eaeaea !important;
}

html.dark .single-sidebar .widget_recent_entries a,
html.dark .single-sidebar .widget_block .sections-list a{
  color: #eaeaea !important;
}

html.dark .single-sidebar .widget_recent_entries a::after,
html.dark .single-sidebar .widget_block .sections-list a::after{
  background: #2ecc71 !important;
}
/* =========================
   TÍTULOS SIDEBAR UNIFICADOS
   ========================= */

/* Entradas recientes */
.wp-block-heading{
  margin: 18px 0 10px !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  color: #b3262e !important;
  text-transform: none !important;
}
/* =========================
   ÍTEMS SIDEBAR – AJUSTE FINO
   ========================= */

.single-sidebar li{
  margin-bottom: 4px !important; /* antes 6px */
  line-height: 1.3 !important;   /* más compacto */
}
