/**
 * Estilos Específicos para Blog - Salaris
 * Complementa el CSS de React con estilos adicionales para WordPress
 */

/* ===== WRAPPER PRINCIPAL ===== */
.salaris-blog-wrapper {
    background-color: #f8fafc;
    min-height: 100vh;
}

/* ===== HERO DEL BLOG ===== */
.salaris-blog-hero {
    background: linear-gradient(to bottom right, #1e1b4b, #581c87, #0f172a);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.salaris-hero-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}

.salaris-hero-blur-1 {
    top: 0;
    right: 0;
    width: 24rem;
    height: 24rem;
    background-color: #9333ea;
}

.salaris-hero-blur-2 {
    bottom: 0;
    left: 0;
    width: 20rem;
    height: 20rem;
    background-color: #3b82f6;
}

.salaris-blog-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.salaris-blog-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.salaris-blog-subtitle {
    color: #cbd5e1;
    font-size: 1.125rem;
    max-width: 42rem;
}

@media (min-width: 768px) {
    .salaris-blog-title {
        font-size: 3rem;
    }
}

/* ===== AJUSTES GLOBALES DEL BLOG ===== */
body.blog,
body.archive,
body.single-post,
body.search,
body.category,
body.tag {
    background-color: #f8fafc !important;
}

/* ===== POSTS GRID ===== */
.salaris-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .salaris-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .salaris-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.salaris-blog-content {
    padding: 3rem 0;
}

/* ===== POST CARDS ===== */
.salaris-post-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.salaris-post-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #c084fc;
    transform: translateY(-4px);
}

.salaris-post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.salaris-post-thumbnail a {
    display: block;
}

.salaris-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.salaris-post-card:hover .salaris-post-img {
    transform: scale(1.05);
}

.salaris-post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.salaris-post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.salaris-meta-separator {
    color: #cbd5e1;
}

.salaris-post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.salaris-post-title a {
    color: inherit;
    text-decoration: none;
}

.salaris-post-card:hover .salaris-post-title {
    color: #9333ea;
}

.salaris-post-excerpt {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.salaris-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #9333ea;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(147, 51, 234, 0.3);
    margin-top: auto;
}

.salaris-read-more:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(147, 51, 234, 0.4);
}

.salaris-arrow-icon {
    width: 1rem;
    height: 1rem;
}

/* ===== NO POSTS ===== */
.salaris-no-posts {
    text-align: center;
    padding: 5rem 1rem;
}

.salaris-no-posts p {
    color: #475569;
    font-size: 1.125rem;
}

/* ===== PAGINACIÓN ===== */
.salaris-pagination-wrapper {
    margin-top: 3rem;
}

.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span.current,
.nav-links a,
.nav-links span.current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination a:hover,
.nav-links a:hover {
    background: #9333ea;
    color: white;
    border-color: #9333ea;
    transform: translateY(-2px);
}

.pagination .current,
.nav-links .current {
    background: #9333ea !important;
    color: white !important;
    border-color: #9333ea !important;
}

/* ===== TAGS EN SINGLE POST ===== */
.tags-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tags-links a {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.tags-links a:hover {
    background: #9333ea;
    color: white;
}

/* ===== CATEGORÍAS EN CARDS ===== */
.cat-links a {
    color: #9333ea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.cat-links a:hover {
    color: #7c3aed;
}

/* ===== COMENTARIOS ===== */
.comments-area {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    margin-top: 3rem;
}

.comments-title,
.comment-reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #0f172a;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.comment-author {
    font-weight: 600;
    color: #0f172a;
}

.comment-meta {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.75rem;
}

.comment-meta a {
    color: #475569;
    text-decoration: none;
}

.comment-meta a:hover {
    color: #9333ea;
}

.comment-content {
    color: #334155;
    line-height: 1.6;
}

.comment-reply-link {
    color: #9333ea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.comment-reply-link:hover {
    color: #7c3aed;
}

/* ===== FORMULARIO DE COMENTARIOS ===== */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.comment-form input[type="submit"] {
    background: #9333ea;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-form input[type="submit"]:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(147, 51, 234, 0.3);
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #334155;
}

/* ===== BUSCADOR EN SIDEBAR (si existe) ===== */
.search-form,
.widget_search form {
    position: relative;
}

.search-form input[type="search"],
.widget_search input[type="search"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.search-form input[type="search"]:focus,
.widget_search input[type="search"]:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.search-form button,
.widget_search button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #9333ea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.search-form button:hover,
.widget_search button:hover {
    background: #7c3aed;
}

/* ===== WIDGETS (si existen) ===== */
.sidebar,
.widget-area {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title,
.widgettitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #9333ea;
}

.widget_recent_entries ul,
.widget_recent_comments ul,
.widget_categories ul,
.widget_archive ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_recent_entries li,
.widget_recent_comments li,
.widget_categories li,
.widget_archive li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.widget_recent_entries li:last-child,
.widget_recent_comments li:last-child,
.widget_categories li:last-child,
.widget_archive li:last-child {
    border-bottom: none;
}

.widget_recent_entries a,
.widget_recent_comments a,
.widget_categories a,
.widget_archive a {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.widget_recent_entries a:hover,
.widget_recent_comments a:hover,
.widget_categories a:hover,
.widget_archive a:hover {
    color: #9333ea;
}

.post-date {
    display: block;
    font-size: 0.75rem;
    color: #475569;
    margin-top: 0.25rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .salaris-blog-hero {
        padding: 2rem 0;
    }
    
    .salaris-blog-title {
        font-size: 2rem;
    }
    
    .comments-area {
        padding: 1.5rem;
    }
}


/* ===== PAGINACIÓN ===== */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span.current,
.nav-links a,
.nav-links span.current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination a:hover,
.nav-links a:hover {
    background: #9333ea;
    color: white;
    border-color: #9333ea;
    transform: translateY(-2px);
}

.pagination .current,
.nav-links .current {
    background: #9333ea !important;
    color: white !important;
    border-color: #9333ea !important;
}

/* ===== TAGS EN SINGLE POST ===== */
.tags-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tags-links a {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.tags-links a:hover {
    background: #9333ea;
    color: white;
}

/* ===== CATEGORÍAS EN CARDS ===== */
.cat-links a {
    color: #9333ea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.cat-links a:hover {
    color: #7c3aed;
}

/* ===== COMENTARIOS ===== */
.comments-area {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    margin-top: 3rem;
}

.comments-title,
.comment-reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #0f172a;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.comment-author {
    font-weight: 600;
    color: #0f172a;
}

.comment-meta {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.75rem;
}

.comment-meta a {
    color: #475569;
    text-decoration: none;
}

.comment-meta a:hover {
    color: #9333ea;
}

.comment-content {
    color: #334155;
    line-height: 1.6;
}

.comment-reply-link {
    color: #9333ea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.comment-reply-link:hover {
    color: #7c3aed;
}

/* ===== FORMULARIO DE COMENTARIOS ===== */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.comment-form input[type="submit"] {
    background: #9333ea;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-form input[type="submit"]:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(147, 51, 234, 0.3);
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #334155;
}

/* ===== BUSCADOR EN SIDEBAR (si existe) ===== */
.search-form,
.widget_search form {
    position: relative;
}

.search-form input[type="search"],
.widget_search input[type="search"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.search-form input[type="search"]:focus,
.widget_search input[type="search"]:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.search-form button,
.widget_search button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #9333ea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.search-form button:hover,
.widget_search button:hover {
    background: #7c3aed;
}

/* ===== WIDGETS (si existen) ===== */
.sidebar,
.widget-area {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title,
.widgettitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #9333ea;
}

.widget_recent_entries ul,
.widget_recent_comments ul,
.widget_categories ul,
.widget_archive ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_recent_entries li,
.widget_recent_comments li,
.widget_categories li,
.widget_archive li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.widget_recent_entries li:last-child,
.widget_recent_comments li:last-child,
.widget_categories li:last-child,
.widget_archive li:last-child {
    border-bottom: none;
}

.widget_recent_entries a,
.widget_recent_comments a,
.widget_categories a,
.widget_archive a {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.widget_recent_entries a:hover,
.widget_recent_comments a:hover,
.widget_categories a:hover,
.widget_archive a:hover {
    color: #9333ea;
}

.post-date {
    display: block;
    font-size: 0.75rem;
    color: #475569;
    margin-top: 0.25rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .comments-area {
        padding: 1.5rem;
    }
}


/* ===== HEADER DEL BLOG ===== */
.blog-header,
.page-header,
.entry-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #581c87 50%, #0f172a 100%);
  padding: 5rem 2rem 4rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-header::before,
.page-header::before {
  content: '';
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 24rem;
  height: 24rem;
  background: #9333ea;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
}

.blog-header h1,
.page-header h1,
.page-title {
  color: white !important;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.blog-header p,
.archive-description,
.taxonomy-description {
  color: #cbd5e1;
  text-align: center;
  max-width: 600px;
  margin: 1rem auto 0;
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs,
.breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.breadcrumbs a,
.breadcrumb a {
  color: var(--salaris-purple);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover,
.breadcrumb a:hover {
  color: var(--salaris-purple-dark);
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.site-main,
.blog-content,
#primary {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== GRID DE POSTS ===== */
.posts-container,
.blog .site-main,
.archive .site-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .posts-container,
  .blog .site-main,
  .archive .site-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .posts-container,
  .blog .site-main,
  .archive .site-main {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== CARDS DE POSTS ===== */
article.post,
.blog-post-card,
.hentry {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--slate-200);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

article.post:hover,
.blog-post-card:hover,
.hentry:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(147, 51, 234, 0.1);
  border-color: rgba(147, 51, 234, 0.3);
}

/* ===== IMAGEN DESTACADA ===== */
.post-thumbnail,
.entry-thumbnail,
article .featured-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--slate-100);
}

.post-thumbnail img,
.entry-thumbnail img,
article .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

article.post:hover .post-thumbnail img,
article.post:hover .entry-thumbnail img {
  transform: scale(1.05);
}

/* ===== CONTENIDO DEL POST ===== */
.entry-content-wrapper,
.post-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* ===== META INFORMACIÓN ===== */
.entry-meta,
.post-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-200);
}

.entry-meta a,
.post-meta a {
  color: var(--slate-600);
  text-decoration: none;
  transition: color 0.2s;
}

.entry-meta a:hover,
.post-meta a:hover {
  color: var(--salaris-purple);
}

.posted-on,
.byline,
.cat-links,
.entry-date {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ===== TÍTULO DEL POST ===== */
.entry-title,
.post-title h2,
article h2.entry-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.entry-title a,
.post-title a,
article h2.entry-title a {
  color: var(--slate-900);
  text-decoration: none;
  transition: color 0.3s;
}

.entry-title a:hover,
.post-title a:hover,
article h2.entry-title a:hover {
  color: var(--salaris-purple);
}

/* ===== EXCERPT/RESUMEN ===== */
.entry-summary,
.entry-content,
.post-excerpt {
  color: var(--slate-600);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* ===== BOTÓN LEER MÁS ===== */
.read-more,
.more-link,
.entry-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--salaris-purple);
  color: white !important;
  padding: 0.625rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(147, 51, 234, 0.2);
  margin-top: auto;
}

.read-more:hover,
.more-link:hover,
.entry-footer a:hover {
  background: var(--salaris-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(147, 51, 234, 0.3);
}

/* ===== CATEGORÍAS Y TAGS ===== */
.cat-links,
.tags-links,
.post-categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cat-links a,
.tags-links a,
.post-categories a {
  display: inline-block;
  background: var(--slate-100);
  color: var(--slate-700);
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.cat-links a:hover,
.tags-links a:hover,
.post-categories a:hover {
  background: var(--salaris-purple);
  color: white;
}

/* ===== SIDEBAR ===== */
.sidebar,
.widget-area,
#secondary {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--slate-200);
  margin-bottom: 2rem;
}

.widget {
  margin-bottom: 2rem;
}

.widget-title,
.widgettitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--salaris-purple);
}

/* ===== BUSCADOR ===== */
.search-form,
.widget_search form {
  position: relative;
}

.search-form input[type="search"],
.widget_search input[type="search"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  transition: all 0.3s;
}

.search-form input[type="search"]:focus,
.widget_search input[type="search"]:focus {
  outline: none;
  border-color: var(--salaris-purple);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.search-form button,
.widget_search button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--salaris-purple);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.search-form button:hover,
.widget_search button:hover {
  background: var(--salaris-purple-dark);
}

/* ===== POSTS RECIENTES EN SIDEBAR ===== */
.widget_recent_entries ul,
.widget_recent_comments ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget_recent_entries li,
.widget_recent_comments li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--slate-200);
}

.widget_recent_entries li:last-child,
.widget_recent_comments li:last-child {
  border-bottom: none;
}

.widget_recent_entries a,
.widget_recent_comments a {
  color: var(--slate-700);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.widget_recent_entries a:hover,
.widget_recent_comments a:hover {
  color: var(--salaris-purple);
}

.post-date {
  display: block;
  font-size: 0.75rem;
  color: var(--slate-600);
  margin-top: 0.25rem;
}

/* ===== PAGINACIÓN ===== */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  color: var(--slate-700);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.pagination a:hover,
.nav-links a:hover {
  background: var(--salaris-purple);
  color: white;
  border-color: var(--salaris-purple);
  transform: translateY(-2px);
}

.pagination .current,
.nav-links .current {
  background: var(--salaris-purple);
  color: white;
  border-color: var(--salaris-purple);
}

/* ===== POST INDIVIDUAL (SINGLE) ===== */
.single-post .entry-header {
  text-align: center;
  margin-bottom: 2rem;
}

.single-post .entry-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.single-post .entry-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.single-post .entry-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 2rem 0 1rem;
}

.single-post .entry-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--slate-900);
  margin: 1.5rem 0 1rem;
}

.single-post .entry-content p {
  margin-bottom: 1.5rem;
}

.single-post .entry-content img {
  border-radius: 1rem;
  margin: 2rem 0;
}

.single-post .entry-content a {
  color: var(--salaris-purple);
  text-decoration: underline;
  transition: color 0.2s;
}

.single-post .entry-content a:hover {
  color: var(--salaris-purple-dark);
}

/* ===== COMENTARIOS ===== */
.comments-area {
  max-width: 800px;
  margin: 3rem auto;
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--slate-200);
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--slate-900);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--slate-200);
}

.comment-author {
  font-weight: 600;
  color: var(--slate-900);
}

.comment-meta {
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 0.75rem;
}

.comment-reply-link {
  color: var(--salaris-purple);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

.comment-reply-link:hover {
  color: var(--salaris-purple-dark);
}

/* ===== FORMULARIO DE COMENTARIOS ===== */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  transition: all 0.3s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--salaris-purple);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.comment-form input[type="submit"] {
  background: var(--salaris-purple);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.comment-form input[type="submit"]:hover {
  background: var(--salaris-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(147, 51, 234, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .blog-header h1,
  .page-header h1 {
    font-size: 2rem;
  }

  .single-post .entry-title {
    font-size: 1.75rem;
  }

  .entry-title,
  .post-title h2 {
    font-size: 1.25rem;
  }

  .sidebar,
  .widget-area {
    margin-top: 2rem;
  }
}
