/* ============================================================
   RDN – BLOG SYSTEM v1 (Archive + Single)
   Estilo alineado con rdn-full-web.css
   ============================================================ */

/* ------------------------------------------------------------
   1) TOKENS LOCALES (apoyados en :root global)
   ------------------------------------------------------------ */

.rdn-blog-archive,
.rdn-single{
  --blog-radius: var(--radius, 18px);
  --blog-shadow: var(--shadow-sm, 0 10px 26px rgba(0,0,0,.10));
  --blog-shadow-strong: var(--shadow, 0 12px 30px rgba(0,0,0,.12));
  --blog-border: 2px solid rgba(15,23,42,.06);
  --blog-border-soft: 2px solid rgba(148,163,184,.35);
  --blog-ink: var(--ink, #1e293b);
  --blog-muted: var(--muted, #64748b);
  --blog-bg: #ffffff;
  --blog-soft: rgba(248,250,252,.9);
  --blog-brand: var(--brand, #03A9F4);
  --blog-brand-dark: #0277BD;
  --blog-badge: var(--orange, #FF9800);
}

/* Layout general del contenido */
.rdn-blog-archive .rdn-main,
.rdn-single .rdn-main{
  max-width: 760px;
  margin-inline: auto;
}

@media (min-width: 1200px){
  .rdn-blog-archive .rdn-main,
  .rdn-single .rdn-main{
    padding-right: 24px;
  }
}

/* Sidebar: columna limpia, sin floats raros */
.rdn-blog-archive .rdn-sidebar,
.rdn-single .rdn-sidebar{
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: .95rem;
}

/* ------------------------------------------------------------
   2) BREADCRUMBS (archive + single)
   ------------------------------------------------------------ */

.rdn-blog-archive .rdn-bc,
.rdn-single .rdn-bc{
  font-size: .9rem;
  color: var(--blog-muted);
  margin-bottom: 16px;
}

.rdn-blog-archive .rdn-bc a,
.rdn-single .rdn-bc a{
  color: var(--blog-brand-dark);
  text-decoration: none;
}

.rdn-blog-archive .rdn-bc a:hover,
.rdn-single .rdn-bc a:hover{
  color: var(--blog-brand);
  text-decoration: underline;
}

/* ------------------------------------------------------------
   3) SINGLE POST (rdn-single)
   ------------------------------------------------------------ */

/* Hero principal (imagen destacada) */
.rdn-single .rdn-hero img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--blog-radius) + 4px);
  box-shadow: var(--blog-shadow-strong);
  border: 3px solid rgba(15,23,42,.06);
  margin-bottom: 18px;
}

/* Título del post */
.rdn-single .rdn-title .elementor-heading-title,
.rdn-single .rdn-title h1{
  font-size: clamp(1.9rem, 2.1vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--blog-ink);
  margin: 0 0 8px;
}

/* Meta (fecha, categoría, etc.) */
.rdn-single .rdn-meta{
  font-size: .9rem;
  color: var(--blog-muted);
  margin: 0 0 20px;
}

.rdn-single .rdn-meta a{
  color: var(--blog-brand-dark);
  text-decoration: none;
}

.rdn-single .rdn-meta a:hover{
  color: var(--blog-brand);
  text-decoration: underline;
}

/* Cuerpo del artículo */
.rdn-single .rdn-content{
  font-size: 1rem;
  line-height: 1.7;
  color: var(--blog-ink);
}

/* Tipografía interna del contenido WP */
.rdn-single .rdn-content p{
  margin: 0 0 1.1em;
}

.rdn-single .rdn-content p:last-child{
  margin-bottom: 0;
}

.rdn-single .rdn-content h2,
.rdn-single .rdn-content h3,
.rdn-single .rdn-content h4{
  margin: 1.8em 0 .6em;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--blog-ink);
}

.rdn-single .rdn-content h2{ font-size: 1.4rem; }
.rdn-single .rdn-content h3{ font-size: 1.2rem; }
.rdn-single .rdn-content h4{ font-size: 1.05rem; }

.rdn-single .rdn-content ul,
.rdn-single .rdn-content ol{
  margin: 0 0 1.2em 1.4em;
  padding: 0;
}

.rdn-single .rdn-content li{
  margin-bottom: .3em;
}

.rdn-single .rdn-content strong{
  font-weight: 800;
}

/* Imágenes dentro del contenido */
.rdn-single .rdn-content img{
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: var(--blog-shadow);
  margin: 14px 0;
}

/* Citado / blockquote */
.rdn-single .rdn-content blockquote{
  margin: 1.4em 0;
  padding: 14px 16px;
  border-left: 4px solid var(--blog-brand);
  background: var(--blog-soft);
  border-radius: 0 16px 16px 0;
  color: var(--blog-ink);
}

/* Bloque "¿Qué hacemos por vos?" */
.rdn-single .rdn-post-cta{
  margin: 28px 0 24px;
  padding: 18px 20px 20px;
  background: linear-gradient(135deg, #ecfdf5, #dbeafe);
  border-radius: var(--blog-radius);
  border: 2px solid rgba(37,211,102,.35);
  box-shadow: var(--blog-shadow-strong);
}

.rdn-single .rdn-post-cta .elementor-heading-title{
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--blog-ink);
}

.rdn-single .rdn-post-cta .rdn-content{
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--blog-muted);
}

/* Botón dentro del CTA (diagnóstico sin cargo) */
.rdn-single .rdn-post-cta a.elementor-button,
.rdn-single .rdn-post-cta .elementor-button{
  margin-top: 10px;
  border-radius: 999px;
  font-weight: 700;
}

/* Author box */
.rdn-single .rdn-author .porto-single-author,
.rdn-single .rdn-author .author-info{
  margin-top: 32px;
  padding: 18px 18px 16px;
  border-radius: var(--blog-radius);
  border: var(--blog-border);
  background: #ffffff;
  box-shadow: var(--blog-shadow);
}

.rdn-single .rdn-author img{
  border-radius: 999px;
}

/* Comentarios */
.rdn-single .rdn-comments{
  margin-top: 32px;
}

.rdn-single .rdn-comments #comments,
.rdn-single .rdn-comments .comments-area{
  padding: 18px 18px 6px;
  border-radius: var(--blog-radius);
  border: var(--blog-border-soft);
  background: #ffffff;
  box-shadow: var(--blog-shadow);
}

/* ------------------------------------------------------------
   4) ARCHIVE (lista de posts) – rdn-blog-archive
   ------------------------------------------------------------ */

/* Ajuste de ancho del contenido */
.rdn-blog-archive .rdn-main{
  max-width: 760px;
  margin-inline: auto;
}

/* Contenedor del grid de posts → columna de cards */
.rdn-blog-archive .rdn-blog-list .porto-posts,
.rdn-blog-archive .rdn-blog-list .elementor-posts-container{
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Card base de cada post */
.rdn-blog-archive .rdn-blog-list article.post,
.rdn-blog-archive .rdn-blog-list .post{
  background: var(--blog-bg);
  border-radius: var(--blog-radius);
  border: var(--blog-border);
  box-shadow: var(--blog-shadow);
  overflow: hidden;
}

/* Si Porto envuelve con columnas Bootstrap, forzamos ancho completo */
.rdn-blog-archive .rdn-blog-list [class*="col-"]{
  flex: 0 0 100%;
  max-width: 100%;
}

/* Imagen destacada en archive */
.rdn-blog-archive .rdn-blog-list .post img{
  display: block;
  width: 100%;
  height: auto;
}

/* Wrapper de texto dentro de la card */
.rdn-blog-archive .rdn-blog-list .post .post-content,
.rdn-blog-archive .rdn-blog-list .post .entry-content,
.rdn-blog-archive .rdn-blog-list .post .entry-summary{
  padding: 16px 18px 18px;
}

/* Título del post en archive */
.rdn-blog-archive .rdn-blog-list .post .entry-title{
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 6px;
}

.rdn-blog-archive .rdn-blog-list .post .entry-title a{
  color: var(--blog-ink);
  text-decoration: none;
}

.rdn-blog-archive .rdn-blog-list .post .entry-title a:hover{
  color: var(--blog-brand-dark);
}

/* Meta (fecha, categorías) en archive */
.rdn-blog-archive .rdn-blog-list .post .entry-meta{
  font-size: .9rem;
  color: var(--blog-muted);
  margin: 0 0 8px;
}

.rdn-blog-archive .rdn-blog-list .post .entry-meta a{
  color: var(--blog-brand-dark);
  text-decoration: none;
}

.rdn-blog-archive .rdn-blog-list .post .entry-meta a:hover{
  color: var(--blog-brand);
  text-decoration: underline;
}

/* Extracto */
.rdn-blog-archive .rdn-blog-list .post .post-excerpt,
.rdn-blog-archive .rdn-blog-list .post .entry-summary{
  font-size: .97rem;
  line-height: 1.6;
  color: var(--blog-ink);
}

/* Leer más */
.rdn-blog-archive .rdn-blog-list .post .read-more,
.rdn-blog-archive .rdn-blog-list .post .btn-read-more{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-weight: 700;
  font-size: .94rem;
  color: var(--blog-brand-dark);
  text-decoration: none;
}

.rdn-blog-archive .rdn-blog-list .post .read-more:hover,
.rdn-blog-archive .rdn-blog-list .post .btn-read-more:hover{
  color: var(--blog-brand);
}

/* Paginación (si Porto la muestra) */
.rdn-blog-archive .pagination,
.rdn-blog-archive .page-numbers{
  margin-top: 26px;
}

/* ------------------------------------------------------------
   5) SIDEBAR (común archive + single)
   ------------------------------------------------------------ */

.rdn-blog-archive .rdn-sidebar .card,
.rdn-single .rdn-sidebar .card{
  background: var(--blog-bg);
  border-radius: var(--blog-radius);
  border: var(--blog-border);
  box-shadow: var(--blog-shadow);
  padding: 16px 14px 16px;
}

/* Títulos de los bloques de sidebar */
.rdn-blog-archive .rdn-sidebar h3,
.rdn-single .rdn-sidebar h3{
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--blog-ink);
}

/* Listas dentro del sidebar */
.rdn-blog-archive .rdn-sidebar ul,
.rdn-single .rdn-sidebar ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.rdn-blog-archive .rdn-sidebar li,
.rdn-single .rdn-sidebar li{
  margin: 4px 0;
}

.rdn-blog-archive .rdn-sidebar a,
.rdn-single .rdn-sidebar a{
  color: var(--blog-brand-dark);
  text-decoration: none;
}

.rdn-blog-archive .rdn-sidebar a:hover,
.rdn-single .rdn-sidebar a:hover{
  color: var(--blog-brand);
}

/* Bloque rojo de ayuda (bg-danger) */
.rdn-blog-archive .rdn-sidebar .bg-danger,
.rdn-single .rdn-sidebar .bg-danger{
  border-radius: var(--blog-radius);
  padding: 16px 16px 18px;
  color: #fff;
  border: none;
  box-shadow: var(--blog-shadow-strong);
}

/* Botones dentro del bloque rojo respetan tus CTAs */
.rdn-blog-archive .rdn-sidebar .bg-danger .btn,
.rdn-single .rdn-sidebar .bg-danger .btn{
  border-radius: 999px;
  font-weight: 700;
}

/* ===== FIX LAYOUT SIDEBAR (stack cards) ===== */

/* Forzamos que las 5 columnas de la inner section rdn-card
   se comporten como filas apiladas, no como columnas del 20% */
.rdn-blog-archive .rdn-sidebar .rdn-card > .elementor-container,
.rdn-blog-archive .rdn-sidebar .rdn-card > .elementor-container > .elementor-row,
.rdn-single .rdn-sidebar .rdn-card > .elementor-container,
.rdn-single .rdn-sidebar .rdn-card > .elementor-container > .elementor-row{
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Cada “columna” del inner section ocupa el 100% */
.rdn-blog-archive .rdn-sidebar .rdn-card .elementor-column,
.rdn-single .rdn-sidebar .rdn-card .elementor-column{
  width: 100% !important;
  max-width: 100% !important;
}

/* Separación vertical entre tarjetas */
.rdn-blog-archive .rdn-sidebar .rdn-card .elementor-column:not(:last-child),
.rdn-single .rdn-sidebar .rdn-card .elementor-column:not(:last-child){
  margin-bottom: 16px;
}
/* =========================================
   SIDEBAR BANNER – ¿Necesitás ayuda hoy?
   (bloque definitivo, reemplaza todo lo anterior)
   ========================================= */

.rdn-blog-archive .rdn-sidebar .rdn-sidebar-banner,
.rdn-single .rdn-sidebar .rdn-sidebar-banner{
  background: linear-gradient(
    140deg,
    #FFE0B2,
    var(--orange, #FF9800)
  ); /* naranja suave, no rojo violento */
  color: #fff;
  border-radius: var(--rdn-radius, 18px);
  padding: 22px 18px 24px;
  text-align: center;
  box-shadow: var(--rdn-shadow, 0 10px 28px rgba(15,23,42,.18));
  border: 0;
}

/* Encabezados del banner */
.rdn-sidebar-banner .elementor-widget-heading .elementor-heading-title{
  color: #fff;
  margin: 0;
}

/* 1º línea: "¿Necesitás ayuda hoy?" */
.rdn-sidebar-banner .elementor-widget-heading:first-of-type .elementor-heading-title{
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .95;
  margin-bottom: 6px;
}

/* 2º línea: "Reparamos tu notebook..." */
.rdn-sidebar-banner .elementor-widget-heading:nth-of-type(2) .elementor-heading-title{
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}

/* 3º línea: "Enviá tu notebook..." */
.rdn-sidebar-banner .elementor-widget-heading:nth-of-type(3) .elementor-heading-title{
  font-size: .96rem;
  font-weight: 600;
  opacity: .98;
  margin-bottom: 14px;
}

/* Teléfono centrado (Porto Info Box) */
.rdn-sidebar-banner .porto-info-box{
  margin: 4px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.rdn-sidebar-banner .porto-info-box-icon{
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.rdn-sidebar-banner .porto-info-box-title{
  font-size: .85rem;
  opacity: .9;
}

.rdn-sidebar-banner .porto-info-box-desc{
  font-size: 1.1rem;
  font-weight: 800;
}

/* Botón del banner */
.rdn-sidebar-banner .elementor-button{
  width: 100%;
  max-width: 260px;
  margin: 8px auto 0;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,.9);
  background: #fff;
  color: var(--rdn-blue, #03A9F4);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

.rdn-sidebar-banner .elementor-button:hover{
  background: transparent;
  color: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}
