/*
Theme Name: Prudencia Blog Theme
Theme URI: https://prudencia.ai
Author: Prudencia.ai
Author URI: https://prudencia.ai
Description: Un tema moderno y minimalista para blogs profesionales, inspirado en el diseño de Prudencia.ai
Version: 2.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prudencia
Tags: blog, clean, minimal, professional, modern
*/

/* ========================================
   RESET Y BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #04452d;
    --color-primary-dark: #033521;
    --color-secondary: #ede61c;
    --color-accent: #0066FF;
    --color-dark: #000000;
    --color-dark-secondary: #1a1a1a;
    --color-text: #000000;
    --color-text-light: #666666;
    --color-border: #e0e0e0;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f5f5;
    --color-bg-dark: #000000;
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --max-width: 1360px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

/* ========================================
   BOTONES (header + searchform)
   ======================================== */
.btn-login {
    padding: 0.5rem 1.5rem;
    background: var(--color-primary);
    color: white !important;
    border-radius: 12px;
    font-weight: 600 !important;
    font-size: 0.9375rem;
    transition: var(--transition);
    border: none;
}

.btn-login:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 69, 45, 0.3);
}

.btn-primary {
	padding: 0.5rem 1.5rem;
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    font-weight: 600 !important;
    font-size: 0.9375rem;
    transition: var(--transition);
    color: var(--color-primary) !important;
}

.btn-primary:hover {
	border-color: var(--color-primary);
    color: white !important;
	background: var(--color-primary) !important;
}

/* ==========================================
   BLOG HERO SECTION
   ========================================== */

.blog-hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: #ffffff;
}

.blog-hero h1 {
    font-size: 56px;
    font-weight: 600;
    margin: 0 0 30px 0;
    line-height: 1.2;
    color: #000;
}

.blog-hero-subtitle {
    font-size: 20px;
    color: #333;
    margin: 0 auto 30px;
    max-width: 800px;
    line-height: 1.6;
}

.blog-hero-tagline {
    font-size: 13px;
    font-weight: 400;
    color: #04452d;
    letter-spacing: 2px;
    margin: 0;
}

.hero-badge {
    align-items: center;
    background-color: #f1f7f4;
    border: 1px solid rgba(0, 0, 0, .05);
    border-radius: 100px;
    color: #6d9c8a;
    display: inline-flex;
    font-size: .9rem;
    font-weight: 300;
    line-height: 1;
    padding: 12px 18px;
}

/* ==========================================
   CATEGORY FILTERS
   ========================================== */

.category-filters {
    background: transparent;
    padding: 0 20px;
    margin-bottom: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.filter-btn {
    background: #F5F5F5;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #999;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

.filter-btn:hover {
    background: #E8E8E8;
    color: #666;
}

.filter-btn.active {
    background: #C8E6D7;
    color: #04452d;
}

/* ==========================================
   POSTS GRID - LAYOUT 66%-33%, luego 33%-33%-33%
   ========================================== */

.posts-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
    gap: 40px;
}

/* Grid para páginas de archivo (categorías, tags, etc) */
.posts-grid-archive {
    grid-template-columns: repeat(3, 1fr) !important;
}

.posts-grid-archive .post-card {
    grid-column: auto !important;
    grid-row: auto !important;
}

/* ==========================================
   POST CARD - ESTILO BASE
   ========================================== */

.post-card {
    background: #F5F5F5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   POST CARD FEATURED - PRIMER POST (66%)
   ========================================== */

.post-card-featured {
    grid-column: 1 / 3; /* Columnas 1 y 2 (66%) */
    grid-row: 1; /* Primera fila */
    display: grid !important; /* Forzar grid */
    grid-template-columns: 1fr 1fr !important; /* Forzar 50%-50% */
    gap: 0;
    min-height: 400px;
}

.post-card-featured .post-thumbnail {
    height: 100%;
    width: 100%;
    position: relative;
}

.post-card-featured .post-thumbnail a {
    display: block;
    height: 100%;
}

.post-card-featured .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.post-card-featured .post-content {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #F5F5F5;
    height: 100%;
}

.post-card-featured .post-meta {
    margin-bottom: 16px;
}

.post-card-featured .post-title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 16px;
    font-weight: 700;
}

.post-card-featured .post-meta-categories {
    margin-top: auto;
    padding-top: 0;
}

/* ==========================================
   POST CARD SECONDARY - SEGUNDO POST (33%)
   ========================================== */

.post-card-secondary {
    grid-column: 3 / 4; /* Columna 3 (33%) */
    grid-row: 1; /* Primera fila */
}


/* ==========================================
   POST CARD - POSTS NORMALES (VERTICALES 33%)
   Estos se colocarán automáticamente en las siguientes filas
   ========================================== */

/* Post Thumbnail */
.post-card:not(.post-card-featured) .post-thumbnail {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
}

.post-card:not(.post-card-featured) .post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-card:not(.post-card-featured) .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:not(.post-card-featured):hover .post-thumbnail img {
    transform: scale(1.08);
}

/* Post Content */
.post-card:not(.post-card-featured) .post-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #F5F5F5;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}

.post-date,
.post-read-time {
    font-weight: 500;
}

.post-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #000;
}

.post-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #4a9b7f;
}

.post-meta-categories {
    margin-top: auto;
    padding-top: 20px;
}

.post-meta-categories .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text-light);
}

.post-meta-categories .category-badge svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-text-light);
    flex-shrink: 0;
}

/* ========================================
   PAGINACIÓN
   ======================================== */
.pagination {
    max-width: var(--max-width);
    margin: var(--spacing-xl) auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    color: var(--color-text);
    font-size: 0.9375rem;
}

.pagination a:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-dark);
}

.pagination .current {
    background: var(--color-dark);
    color: white;
    border-color: var(--color-dark);
}

/* ========================================
   SINGLE POST
   ======================================== */

/* Container principal con dos columnas */
.single-post-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 80px;
    align-items: start;
}

/* Sidebar izquierda */
.single-post-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-thumbnail {
    border-radius: 16px;
    overflow: hidden;
}

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

/* CTA Card */
.cta-card {
    background: var(--color-primary);
    color: white;
    padding: 32px 28px;
    border-radius: 16px;
}

.cta-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: white;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: var(--color-secondary);
    color: var(--color-dark) !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #f5f028;
    transform: translateY(-2px);
}

.cta-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cta-features li {
    padding: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Contenido del post */
.single-post-content {
    max-width: 800px;
}

.single-post-header {
    margin-bottom: 40px;
}

.post-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.post-category-badge svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.single-post-meta {
    display: flex;
    gap: 16px;
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.single-post-meta .post-read-time::before {
    content: "•";
    margin-right: 16px;
}

.single-post-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

.post-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
}

.post-body p {
    margin-bottom: 1.75rem;
}

.post-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    color: var(--color-dark);
    letter-spacing: -0.02em;
}

.post-body h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem;
    color: var(--color-dark);
    letter-spacing: -0.01em;
}

.post-body ul,
.post-body ol {
    margin: 1.75rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.75rem;
}

.post-body blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: var(--color-text-light);
    font-size: 1.25rem;
    line-height: 1.7;
}

.post-body img {
    margin: 2.5rem 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.post-body a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: var(--transition);
}

.post-body a:hover {
    color: var(--color-primary-dark);
}

.post-body strong,
.post-body b {
    font-weight: 700;
}

.entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.tags-links {
    font-size: 14px;
    color: var(--color-text-light);
}

/* Navegación entre posts */
.post-navigation {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ========================================
   ARTÍCULOS RELACIONADOS
   ======================================== */

.related-posts {
    max-width: 1400px;
    margin: 80px auto 0;
    padding: 80px 20px 0;
    border-top: 1px solid var(--color-border);
}

.related-posts-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-dark);
}

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

.related-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.related-post-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}

.related-post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-post-card:hover .related-post-thumbnail img {
    transform: scale(1.08);
}

.related-post-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #F5F5F5;
}

.related-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.related-post-meta .post-read-time::before {
    content: "";
    margin-right: 0;
}

.related-post-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 16px 0;
    color: #000;
}

.related-post-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #4a9b7f;
}

.related-post-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: auto;
}

.related-post-category svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-text-light);
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-posts {
        margin-top: 60px;
        padding-top: 60px;
    }
    
    .related-posts-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .related-post-thumbnail {
        height: 200px;
    }
}

/* ========================================
   COMENTARIOS
   ======================================== */

.comments-area {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 60px 0 0;
    border-top: 1px solid var(--color-border);
}

.comments-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--color-dark);
}

.comment-respond {
    background: #F9F9F9;
    padding: 40px;
    border-radius: 12px;
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-dark);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-form-comment {
    width: 100%;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.comment-form-comment textarea {
    width: 100%;
    min-height: 140px;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(4, 69, 45, 0.1);
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    width: 100%;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(4, 69, 45, 0.1);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.comment-form-cookies-consent label {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-light);
    line-height: 1.5;
    cursor: pointer;
}

.form-submit {
    margin-top: 10px;
}

.form-submit input[type="submit"] {
    background: var(--color-primary);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 69, 45, 0.3);
}

.comment-notes {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.required {
    color: #d32f2f;
}

/* Lista de comentarios */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-list .comment {
    padding: 30px 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-list .comment:first-child {
    padding-top: 0;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    font-size: 16px;
    color: var(--color-dark);
    font-style: normal;
}

.comment-metadata {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.comment-metadata a {
    color: var(--color-text-light);
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--color-primary);
}

.comment-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
}

.comment-content p {
    margin-bottom: 1rem;
}

.reply {
    margin-top: 12px;
}

.reply a {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.reply a:hover {
    color: var(--color-primary-dark);
}

/* Responsive comentarios */
@media (max-width: 768px) {
    .comment-respond {
        padding: 30px 24px;
    }
    
    .comment-reply-title {
        font-size: 20px;
    }
    
    .form-submit input[type="submit"] {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .single-post-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .single-post-sidebar {
        position: relative;
        top: 0;
        max-width: 360px;
        margin: 0 auto;
    }
    
    .single-post-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .single-post-container {
        padding: 40px 20px;
    }
    
    .single-post-title {
        font-size: 28px;
    }
    
    .post-body {
        font-size: 17px;
    }
    
    .post-body h2 {
        font-size: 24px;
    }
    
    .post-body h3 {
        font-size: 20px;
    }
}

/* ========================================
   SOCIAL LINKS (compartido)
   ======================================== */
.social-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    text-decoration: none;
}

.social-link i {
    display: block;
	font-size: 1.5em;
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   ========================================== */

/* Tablet Grande */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
        gap: 30px;
    }
    
    .post-card-featured {
        grid-column: span 2; /* Ocupa todo el ancho */
        grid-row: auto;
        grid-template-columns: 1fr 1fr; /* Mantener 50%-50% dentro */
    }
    
    .post-card-featured .post-thumbnail {
        min-height: 280px;
    }
    
    .post-card-featured .post-content {
        padding: 28px;
    }
    
    .post-card-featured .post-title {
        font-size: 22px;
    }
    
    .post-card-secondary {
        grid-column: span 1;
        grid-row: auto;
    }
    
    .post-card:nth-child(3),
    .post-card:nth-child(4),
    .post-card:nth-child(5),
    .post-card:nth-child(6),
    .post-card:nth-child(n+7) {
        grid-column: span 1;
        grid-row: auto;
    }
}

/* Mobile Grande */
@media (max-width: 768px) {
    .blog-hero {
        padding: 60px 20px 40px;
    }
    
    .blog-hero h1 {
        font-size: 36px;
    }
    
    .blog-hero-subtitle {
        font-size: 18px;
    }
    
    .blog-hero-tagline {
        font-size: 11px;
    }
    
    .category-filters {
        padding: 20px 15px;
    }
    
    .filter-buttons {
        justify-content: flex-start;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        gap: 25px;
    }
    
    /* Featured post en columna en móvil */
    .post-card-featured {
        grid-column: span 1;
        grid-row: auto;
        grid-template-columns: 1fr; /* Imagen arriba, contenido abajo */
        min-height: auto;
    }
    
    .post-card-featured .post-thumbnail {
        height: 250px;
        min-height: auto;
    }
    
    .post-card-featured .post-content {
        padding: 25px 20px;
    }
    
    .post-card-featured .post-title {
        font-size: 22px;
    }
    
    .post-card-secondary {
        grid-column: span 1;
        grid-row: auto;
    }
    
    .post-card:nth-child(3),
    .post-card:nth-child(4),
    .post-card:nth-child(5),
    .post-card:nth-child(6),
    .post-card:nth-child(n+7) {
        grid-column: span 1;
        grid-row: auto;
    }
    
    .post-card:not(.post-card-featured) .post-thumbnail {
        height: 220px;
    }
    
    .post-card:not(.post-card-featured) .post-content {
        padding: 20px;
    }
	
	.post-card:not(.post-card-featured) .post-excerpt {
    	flex: 1;
	}
    
    .post-title {
        font-size: 20px;
    }
    
    .single-post-title {
        font-size: 2.25rem;
        letter-spacing: -0.02em;
    }
}

/* Mobile Pequeño */
@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 28px;
    }
    
    .blog-hero-subtitle {
        font-size: 16px;
    }
    
    .posts-grid {
        gap: 20px;
    }
    
    .post-card-featured .post-thumbnail {
        height: 220px;
    }
    
    .post-card-featured .post-content {
        padding: 20px;
    }
    
    .post-card-featured .post-title {
        font-size: 20px;
    }
    
    .post-card:not(.post-card-featured) .post-thumbnail {
        height: 200px;
    }
}

/* ========================================
   UTILIDADES
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.text-green-accent{
	color: #04452d;
    text-decoration: underline;
    text-underline-offset: 8px;
}





.cta-card-green {
    background: linear-gradient(135deg, var(--color-primary) 0%, #3a8a65 50%, var(--color-primary) 100%);
    background-size: 200% 200%;
    animation: subtleShift 6s ease infinite;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: span 1;
    box-shadow: 0 4px 20px rgba(45, 106, 79, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-card-green:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(45, 106, 79, 0.45);
}

@keyframes subtleShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-card-inner {
    text-align: center;
}

.cta-card-text {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.cta-card-text strong {
    display: block;
    font-size: 1.5rem;
    opacity: 1;
    letter-spacing: 0.02em;
}

.cta-card-btn {
    display: inline-block;
    background-color: var(--color-secondary);
    color: #1a1a1a;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(245, 200, 66, 0.4);
}

.cta-card-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(245, 200, 66, 0.6);
}

/* Contenedor Principal */
.prudencia-comments-container {
    max-width: 850px;
    margin: 4rem auto;
    padding: 2rem;
    background: #ffffff;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #2d3748;
}

/* Título */
.comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 1rem;
}

.post-title-highlight {
    color: #4a5568;
    font-weight: 400;
    display: block;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Lista de Comentarios Reales */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}

.comment-body:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.comment-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 1rem;
}

/* Sección de Pingbacks (Lo que se ve en tu imagen) */
.pingbacks-section {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #f1f5f9;
    border-radius: 8px;
}

.pingbacks-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 1rem;
}

.pingback-list {
    list-style: none;
    padding: 0;
}

.pingback {
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.pingback:last-child { border: none; }

.pingback a {
    color: #3182ce;
    text-decoration: none;
}

/* Formulario de Comentarios */
#respond {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #edf2f7;
}

.comment-form input, .comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.submit-prudencia {
    background: #2c5282; /* Azul corporativo */
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* ── Reset numeración ── */
ul.comment-list,
ul.comment-list ul.children {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

ul.comment-list > li {
    list-style: none !important;
    counter-increment: none !important;
}

/* ── Comentario padre ── */
ul.comment-list > li > article.comment-body {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

/* ── Comentarios anidados (children) ── */
ul.comment-list ul.children {
    margin-left: 2.5rem;
    margin-top: 0.75rem;
    padding-left: 1.25rem;
    border-left: 3px solid #d1e7dd; /* verde suave Prudencia */
}

ul.comment-list ul.children li article.comment-body {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
}

/* ── Meta: avatar + nombre en línea ── */
.comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.comment-author img.avatar {
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-author .fn {
    font-weight: 700;
    font-size: 1rem;
    color: #1a202c;
}

.comment-author .says {
    font-weight: 400;
    color: #718096;
    font-size: 0.9rem;
}

/* ── Fecha ── */
.comment-metadata {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-bottom: 0.75rem;
    margin-left: 3.5rem; /* alinear con el nombre */
}

.comment-metadata a {
    color: #a0aec0;
    text-decoration: none;
}

/* ── Contenido ── */
.comment-content p {
    margin: 0 0 0.5rem;
    color: #2d3748;
    line-height: 1.6;
}

/* ── Botón Responder ── */
.reply a.comment-reply-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #276749; /* verde Prudencia */
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.reply a.comment-reply-link:hover {
    text-decoration: underline;
}

/* ── Móvil ── */
@media (max-width: 600px) {
    ul.comment-list ul.children {
        margin-left: 1rem;
        padding-left: 0.75rem;
    }
}

/* 1. Fondo GRIS para la pregunta inicial (comentario padre) */
#comments ul.comment-list > li > .comment-body {
    background-color: #f8fafc !important; /* Gris muy claro profesional */
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

/* 2. Fondo BLANCO para las respuestas (comentarios hijos) */
#comments ul.comment-list ul.children .comment-body {
    background-color: #ffffff !important; /* Blanco para las respuestas */
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-bottom: 1rem !important;
    /* Mantenemos el indentado que ya configuramos */
}

/* 3. Asegurar que no haya líneas residuales */
#comments ul.comment-list ul.children {
    border-left: none !important;
    margin-left: 45px !important;
    padding-left: 0 !important;
}

/* 4. Ajuste para móviles */
@media (max-width: 600px) {
    #comments ul.comment-list ul.children {
        margin-left: 20px !important;
    }
    #comments .comment-body {
        padding: 1rem !important;
    }
}

/* 5. Ajuste para móviles (mantener indentado suave sin líneas) */
@media (max-width: 600px) {
    #comments ul.comment-list ul.children {
        margin-left: 20px !important;
    }
}

.comment-author img.avatar{
	padding: 3px;
	border: 1px solid #CCCCCC;
}

/* ==========================================
   NAVBAR PRUDENCIA (replica de prudencia.ai)
   ========================================== */
.prudencia-navbar,
.prudencia-navbar *,
.mega-menu,
.mega-menu * {
    font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.prudencia-navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.prudencia-navbar .container {
    max-width: var(--max-width);
}

.prudencia-logo {
    width: 190px;
    height: auto;
    display: block;
}

.prudencia-navbar .navbar-nav .nav-link {
    color: var(--color-primary);
    font-weight: 400;
    font-size: 1rem;
    transition: var(--transition);
}

.prudencia-navbar .navbar-nav .nav-link:hover,
.prudencia-navbar .navbar-nav .nav-link:focus,
.prudencia-navbar .navbar-nav .nav-item.dropdown.show > .nav-link {
    color: var(--color-primary);
    opacity: 0.8;
}

.prudencia-navbar .navbar-nav .nav-link.active {
    color: var(--color-primary);
    font-weight: 500;
}

.prudencia-navbar .dropdown-toggle::after {
    margin-left: 0.35em;
    opacity: 0.6;
}

.prudencia-navbar .dropdown-menu {
    border: none;
    background: #fff;
}

.prudencia-nav-cta .btn-primary,
.prudencia-nav-cta .btn-login {
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

/* ==========================================
   MEGA-MENU (header "Recursos")
   ========================================== */
.mega-menu {
    width: min(880px, calc(100vw - 32px));
    border: 1px solid rgba(4, 69, 45, 0.08);
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(4, 69, 45, 0.04),
        0 8px 24px rgba(4, 69, 45, 0.08),
        0 24px 60px rgba(4, 69, 45, 0.12);
    overflow: hidden;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px !important;
    padding: 0;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.05fr;
    gap: 0;
}

.mega-menu-col {
    padding: 24px 22px;
    border-right: 1px solid #f0f2f0;
    display: flex;
    flex-direction: column;
}

.mega-menu-col:last-child {
    border-right: none;
}

.mega-menu-col--feature {
    background: #F1F7F4;
}

.mega-menu-title {
    font-family: "Geist Mono", "Courier New", monospace !important;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 700;
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-menu-title i {
    font-size: 1rem;
}

.mega-menu-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #1a1a1a !important;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.mega-menu-link:hover {
    background: #edf2f0;
    color: var(--color-primary) !important;
}

.mega-menu-link:hover .mega-menu-link-icon {
    color: var(--color-primary);
}

.mega-menu-link--compact {
    padding: 8px 12px;
}

.mega-menu-link-icon {
    font-size: 1.15rem;
    color: #8e9196;
    margin-top: 2px;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.mega-menu-link-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
}

.mega-menu-link-desc {
    display: block;
    font-size: 0.78rem;
    color: #8e9196;
    line-height: 1.45;
    margin-top: 2px;
}

.mega-menu-cta {
    margin-top: auto;
    padding-top: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    transition: gap 0.15s ease, color 0.15s ease;
}

.mega-menu-cta i {
    font-size: 0.95rem;
}

.mega-menu-cta:hover {
    color: #2c5142 !important;
    gap: 10px;
}

.mega-menu-feature-desc {
    font-size: 0.86rem;
    color: #4a4a4a;
    line-height: 1.55;
    margin-bottom: 14px;
}

.mega-menu-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.mega-menu-feature-list li {
    font-size: 0.83rem;
    color: #1a1a1a;
    font-weight: 600;
    padding: 6px 0;
    border-bottom: 1px solid rgba(4, 69, 45, 0.08);
}

.mega-menu-feature-list li:last-child {
    border-bottom: none;
}

.mega-menu-feature-list li::before {
    content: "★";
    color: #dce11a;
    margin-right: 8px;
}

@media (max-width: 991.98px) {
    .mega-menu {
        width: 100%;
        left: 0;
        transform: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
        margin-top: 0 !important;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
    }

    .mega-menu-col {
        border-right: none;
        border-bottom: 1px solid #f0f2f0;
        padding: 18px 20px;
    }

    .mega-menu-col:last-child {
        border-bottom: none;
    }

    .mega-menu-col--feature {
        background: transparent;
    }

    .prudencia-nav-cta {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #f0f2f0;
    }
}

/* ==========================================
   FOOTER PRUDENCIA (replica de prudencia.ai)
   ========================================== */
footer.footer {
    color: #ffffff;
    background-color: #091315;
    font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-top: 0;
    padding: 0;
}

footer.footer .container {
    max-width: var(--max-width);
}

footer.footer a {
    color: #ffffff;
    text-decoration: none;
}

footer.footer p {
    margin-bottom: 0.5rem;
}

footer.footer .footer-brand .logo-footer {
    height: auto;
    max-width: 160px;
}

footer.footer .footer-tagline {
    line-height: 1.6;
    font-size: 1rem;
}

footer.footer .social-links .social-link {
    color: #ffffff;
    opacity: 0.6;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

footer.footer .social-links .social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

footer.footer .footer-heading {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
}

footer.footer .footer-links {
    padding-left: 0;
    list-style: none;
}

footer.footer .footer-links li {
    margin-bottom: 0.75rem;
}

footer.footer .footer-links li a {
    color: #ffffff;
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 0.2s ease;
    font-size: 0.95rem;
    display: inline-block;
}

footer.footer .footer-links li a:hover {
    opacity: 1;
}

footer.footer .footer-bottom .copyright,
footer.footer .footer-bottom .badge-item {
    font-size: 0.85rem;
}

/* py-6 / fs-9 helpers usados por la web */
.py-6 {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
}

.fs-9 {
    font-size: 0.9rem !important;
}

@media (max-width: 991.98px) {
    .py-6 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}