/**
 * Wazu Media — custom.css
 * Versión ordenada y consolidada (mayo 2026)
 *
 * Estructura:
 * 1.  Layout y widgets generales (sidebar, breaking news, popular, etc.)
 * 2.  Single post (avatar autor, caja autor, tags, párrafos, cabecera)
 * 3.  Cards de "Te puede interesar" / posts relacionados
 * 4.  Cat-grid del home (1 hero + 2x2 en móvil)
 * 5.  Footer extra (newsletter, legal, social)
 * 6.  Single post — sidebar derecho con notas relacionadas
 * 7.  Navegación entre posts (Anterior / Siguiente)
 * 8.  Utilidades, comentarios, share, tags, social
 */


/* =============================================================
   1. LAYOUT Y WIDGETS GENERALES
   ============================================================= */

/* ===== BREAKING NEWS (ÚLTIMA HORA) ===== */
.breaking-news {
    background: #cc0000;
    color: white;
    padding: 12px 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.breaking-news-label {
    background: #990000;
    padding: 8px 20px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 20px;
    flex-shrink: 0;
}
.breaking-news-content { flex: 1; font-size: 16px; font-weight: 500; }
.breaking-news-content a { color: white; text-decoration: none; }
.breaking-news-content a:hover { text-decoration: underline; }


/* ===== LAYOUT DOS COLUMNAS (genérico) ===== */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-top: 30px;
}
.content-area { min-width: 0; }

@media (max-width: 1024px) {
    .content-layout { grid-template-columns: 1fr; gap: 40px; }
    .sidebar { order: 2; }
}


/* ===== POST DESTACADO (legacy) ===== */
.post-featured { margin-bottom: 30px; }
.post-featured .entry-title { font-size: 2.5rem; line-height: 1.1; margin-bottom: 15px; }
.post-featured .entry-excerpt { font-size: 1.125rem; line-height: 1.6; color: #333; margin-bottom: 12px; }
.post-featured .entry-meta { font-size: 14px; }


/* ===== SIDEBAR STICKY (genérico) ===== */
.sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}


/* ===== LO MÁS LEÍDO / POPULAR ===== */
.widget_popular_posts .post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}
.widget_popular_posts .post-item:last-child { border-bottom: none; }
.widget_popular_posts .post-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    flex-shrink: 0;
}
.widget_popular_posts .post-content { flex: 1; }
.widget_popular_posts .post-title { font-size: 14px; font-weight: 700; line-height: 1.4; margin-bottom: 5px; }
.widget_popular_posts .post-title a { color: #222; }
.widget_popular_posts .post-title a:hover { color: var(--color-primary); }
.widget_popular_posts .post-meta { font-size: 12px; color: #767676; }


/* ===== CATEGORÍAS EN SIDEBAR ===== */
.widget_categories ul { list-style: none; }
.widget_categories li { display: flex; justify-content: space-between; align-items: center; }
.widget_categories .cat-count { background: #f7f7f7; padding: 2px 8px; border-radius: 3px; font-size: 12px; color: #767676; }


/* ===== WIDGET NEWSLETTER (sidebar) ===== */
.widget_newsletter { background: #f7f7f7; padding: 20px; border-radius: 4px; }
.widget_newsletter h3 { font-size: 18px; margin-bottom: 10px; }
.widget_newsletter p { font-size: 14px; color: #555; margin-bottom: 15px; line-height: 1.5; }
.widget_newsletter input[type="email"] {
    width: 100%; padding: 10px;
    border: 1px solid #ddd; border-radius: 3px;
    margin-bottom: 10px; font-size: 14px;
}
.widget_newsletter button {
    width: 100%; padding: 10px;
    background: var(--color-primary); color: white;
    border: none; border-radius: 3px;
    font-weight: 700; cursor: pointer;
    transition: background 0.2s ease;
}
.widget_newsletter button:hover { background: #4a3278; }


@media (max-width: 768px) {
    .post-featured .entry-title { font-size: 1.6rem; }
}


/* =============================================================
   2. SINGLE POST — avatar, caja autor, tags, cabecera, párrafos
   ============================================================= */

/* ----- 2.1 IMÁGENES DENTRO DEL CONTENIDO ----- */
.single-post-wazu .entry-content img {
    border-radius: 4px;
    margin: 20px 0;
}
.single-post-wazu .entry-content figcaption {
    font-size: 13px;
    color: #767676;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}
.single-post-wazu .entry-footer { margin-top: 30px; padding-top: 30px; border-top: 1px solid #e5e5e5; }
.single-post-wazu .tags-links { font-size: 14px; color: #767676; }
.single-post-wazu .tags-links strong { color: #222; margin-right: 5px; }
.single-post-wazu .tags-links a {
    display: inline-block; padding: 4px 10px; margin: 2px;
    background: #f7f7f7; border: 1px solid #e5e5e5;
    border-radius: 3px; font-size: 13px;
    color: #555; transition: all 0.2s ease;
}
.single-post-wazu .tags-links a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}


/* ----- 2.2 AVATAR DE AUTOR — siempre redondo perfecto ----- */
.single-author-box .author-avatar,
.single-author-box .author-avatar img,
.author-bio .author-avatar img,
.author-info-wrap .avatar,
.single-post-container img.avatar {
    width: 80px !important;
    height: 80px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    display: block;
}
.single-author-box .author-avatar {
    width: 80px;
    height: 80px;
    overflow: hidden;
    flex-shrink: 0;
}
@media (min-width: 769px) {
    .single-author-box .author-avatar,
    .single-author-box .author-avatar img {
        width: 90px !important;
        height: 90px !important;
    }
}


/* ----- 2.3 CAJA DE AUTOR (antes de las etiquetas) ----- */
.single-author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    margin: 32px 0 20px;
    background: #f7f7f5;
    border-radius: 8px;
    border: 1px solid #ececec;
}
.single-author-box .author-info { flex: 1; min-width: 0; }
.single-author-box .author-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    text-transform: none;
    letter-spacing: 0.2px;
}
.single-author-box .author-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.2;
}
.single-author-box .author-name a { color: #1a1a1a; text-decoration: none; }
.single-author-box .author-name a:hover { text-decoration: underline; }
.single-author-box .author-description {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 0 0 10px;
}
.single-author-box .author-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}
.single-author-box .author-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .single-author-box {
        flex-direction: row;
        gap: 14px;
        padding: 18px;
    }
    .single-author-box .author-avatar,
    .single-author-box .author-avatar img {
        width: 60px !important;
        height: 60px !important;
    }
    .single-author-box .author-name { font-size: 1rem; }
    .single-author-box .author-description { font-size: 13px; }
}


/* ----- 2.4 ETIQUETAS (debajo de la caja de autor) ----- */
.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 20px 0 28px;
    padding-top: 20px;
    border-top: 1px solid #ececec;
}
.single-tags .tags-label {
    font-weight: 700;
    font-size: 13px;
    color: #1a1a1a;
    margin-right: 4px;
}
.single-tags a {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    background: #f0f0f0;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s ease;
}
.single-tags a:hover { background: #e0e0e0; }


/* ----- 2.5 CABECERA DE LA NOTA (categoría / título / bajada / meta) ----- */
.entry-header,
.single-post-container .entry-header {
    margin-bottom: 24px;
}

.entry-header .category-badge,
.single-post-container .entry-header .category-badge {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Solo aplica al título DEL POST INDIVIDUAL, NO a las cards */
.entry-header > .entry-title,
.single-post-container > article > .entry-header .entry-title,
.single-post-container > article > .entry-title,
.single-main-col > .entry-header .entry-title {
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 16px;
    color: #1a1a1a;
}

.entry-header > .entry-excerpt,
.single-post-container > article > .entry-header .entry-excerpt,
.single-post-container > article > .entry-excerpt,
.single-main-col > .entry-header .entry-excerpt {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #444;
    font-weight: 400;
    margin: 0 0 18px;
}

.entry-header .entry-meta,
.single-post-container > article > .entry-header .entry-meta,
.single-main-col > .entry-header .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
    color: #777;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ececec;
}
.entry-header .entry-meta span,
.single-post-container > article > .entry-header .entry-meta span {
    display: inline-flex;
    align-items: center;
}

.post-thumbnail-single { margin: 0 0 8px; }
.post-thumbnail-caption {
    font-size: 13px;
    color: #777;
    margin: 8px 0 24px;
    font-style: italic;
}


/* ----- 2.6 ESPACIADO ENTRE PÁRRAFOS DEL CONTENIDO ----- */
.entry-content p,
.single-post-container .entry-content p {
    margin: 0 0 1.4em;
    line-height: 1.7;
    font-size: 1.05rem;
}
.entry-content p:last-child,
.single-post-container .entry-content p:last-child {
    margin-bottom: 0;
}
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.single-post-container .entry-content ul,
.single-post-container .entry-content ol,
.single-post-container .entry-content blockquote {
    margin: 0 0 1.4em;
    line-height: 1.7;
}
.entry-content h2,
.entry-content h3,
.entry-content h4,
.single-post-container .entry-content h2,
.single-post-container .entry-content h3,
.single-post-container .entry-content h4 {
    margin: 1.8em 0 0.6em;
    line-height: 1.3;
    font-weight: 700;
}
.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-block-embed,
.entry-content iframe,
.single-post-container .entry-content figure,
.single-post-container .entry-content .wp-block-image,
.single-post-container .entry-content .wp-block-embed,
.single-post-container .entry-content iframe {
    margin: 1.8em 0;
}
.entry-content > p:first-child,
.single-post-container .entry-content > p:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {
    .entry-header > .entry-title,
    .single-post-container > article > .entry-title,
    .single-main-col > .entry-header .entry-title {
        font-size: 1.5rem;
        line-height: 1.25;
    }
    .entry-header > .entry-excerpt,
    .single-post-container > article > .entry-excerpt,
    .single-main-col > .entry-header .entry-excerpt {
        font-size: 1rem;
    }
    .entry-content p,
    .single-post-container .entry-content p {
        font-size: 1rem;
    }
}


/* =============================================================
   3. CARDS DE "TE PUEDE INTERESAR" / POSTS RELACIONADOS
   ============================================================= */

.related-posts {
    background: #f7f7f7;
    padding: 50px 0;
    margin-top: 50px;
}
.related-posts h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.related-posts-grid,
.posts-grid,
.home-posts-grid,
.archive-posts-grid,
.featured-grid,
.related-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

@media (max-width: 992px) {
    .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .related-posts-grid { grid-template-columns: 1fr; }
}

.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}
.post-card .post-thumbnail { flex-shrink: 0; }
.post-card .post-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 18px;
    gap: 10px;
}
.post-card .post-card-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Título de la card — tamaño compacto, máx 3 líneas */
.post-card .entry-title,
.related-posts .post-card .entry-title,
.related-posts-grid .post-card .entry-title {
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.post-card .entry-title a { color: inherit; }
.post-card .entry-title a:hover { color: var(--color-primary); }

.post-card .entry-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.post-card .entry-meta {
    margin-top: auto;
    padding-top: 8px;
    font-size: 12px;
    color: #777;
}

@media (max-width: 768px) {
    .post-card .entry-title,
    .related-posts .post-card .entry-title,
    .related-posts-grid .post-card .entry-title {
        font-size: 1rem !important;
    }
}


/* =============================================================
   4. CAT-GRID DEL HOME (1 hero + 2x2 en móvil)
   ============================================================= */

@media (min-width: 769px) {
    .cat-grid-four .cat-card-mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .cat-grid-four {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 14px;
    }

    .cat-grid-four .cat-card-hero { grid-column: 1 / -1; }
    .cat-grid-four .cat-card-hero .cat-card-img {
        aspect-ratio: 16 / 9;
        overflow: hidden;
    }
    .cat-grid-four .cat-card-hero .cat-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .cat-grid-four .cat-card-hero .cat-card-title {
        font-size: 1.35rem;
        line-height: 1.25;
    }
    .cat-grid-four .cat-card-hero .cat-card-excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .cat-grid-four .cat-card:not(.cat-card-hero) {
        display: flex;
        flex-direction: column;
    }
    .cat-grid-four .cat-card:not(.cat-card-hero) .cat-card-img {
        aspect-ratio: 4 / 3;
        overflow: hidden;
    }
    .cat-grid-four .cat-card:not(.cat-card-hero) .cat-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .cat-grid-four .cat-card:not(.cat-card-hero) .cat-card-title {
        font-size: 0.95rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .cat-grid-four .cat-card:not(.cat-card-hero) .cat-card-excerpt {
        display: none;
    }
    .cat-grid-four .cat-card:not(.cat-card-hero) .cat-card-body {
        padding: 10px 0 0;
    }

    .cat-grid-four .cat-card-mobile-only {
        display: flex !important;
    }
}

@media (max-width: 420px) {
    .cat-grid-four .cat-card-hero .cat-card-title { font-size: 1.2rem; }
    .cat-grid-four .cat-card:not(.cat-card-hero) .cat-card-title { font-size: 0.88rem; }
}


/* =============================================================
   5. FOOTER EXTRA — newsletter, legal, social
   ============================================================= */

.footer-newsletter p { margin-bottom: 15px; opacity: 0.8; }
.footer-newsletter .newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.footer-newsletter input[type="email"] {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 3px;
    font-size: 14px;
}
.footer-newsletter input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.5); }
.footer-newsletter button {
    padding: 10px 20px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.footer-newsletter button:hover { opacity: 0.85; }


.footer-legal-menu { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal-menu a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    transition: color 0.2s ease;
}
.footer-legal-menu a:hover { color: white; }
.footer-legal-menu .sep { color: rgba(255, 255, 255, 0.3); }


/* =============================================================
   6. SINGLE POST — sidebar derecho con notas relacionadas
   Layout 2 columnas DESDE ARRIBA (incluye cabecera + imagen).
   ============================================================= */

.single-post-container .single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-top: 0;
    align-items: start;
}

.single-main-col {
    min-width: 0;
}

.single-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

/* Banner placeholder */
.sidebar-ad-space .ad-placeholder {
    background: var(--color-light, #f5f5f5);
    border: 2px dashed var(--color-border, #ddd);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    font-size: 12px;
    color: var(--color-gray, #666);
    font-weight: 600;
    gap: 4px;
}
.sidebar-ad-space .ad-placeholder small {
    font-size: 11px;
    opacity: 0.7;
}

/* Bloque de notas relacionadas */
.sidebar-related { background: #fff; }

.sidebar-related-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-primary, #5C4096);
    margin: 0 0 15px;
    display: inline-block;
    color: var(--color-black, #1a1a1a);
}

.sidebar-rel-item {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
    align-items: start;
}
.sidebar-rel-item:last-child {
    border-bottom: none;
}
.sidebar-rel-text { min-width: 0; }

.sidebar-rel-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-gray, #767676);
    margin-bottom: 5px;
    letter-spacing: 0.4px;
}

.sidebar-rel-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-rel-title a { color: var(--color-black, #1a1a1a); text-decoration: none; }
.sidebar-rel-title a:hover { color: var(--color-primary, #5C4096); }

.sidebar-rel-img {
    overflow: hidden;
    border-radius: 3px;
    width: 80px;
    height: 80px;
}
.sidebar-rel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

@media (max-width: 1024px) {
    .single-post-container .single-layout {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .single-post-container .single-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .single-sidebar {
        position: static;
        margin-top: 20px;
    }
    .sidebar-ad-space .ad-placeholder {
        min-height: 180px;
    }
}


/* =============================================================
   7. NAVEGACIÓN ENTRE POSTS (Anterior / Siguiente) — 2 COLUMNAS
   WordPress envuelve los enlaces en .nav-links → ahí va el grid.
   ============================================================= */

.post-navigation,
nav.post-navigation {
    padding: 30px 0;
    margin: 30px auto;
    max-width: var(--container, 1200px);
    border-top: 1px solid var(--color-border, #e5e5e5);
    border-bottom: 1px solid var(--color-border, #e5e5e5);
}

/* ★ El contenedor real donde van los dos enlaces ★ */
.post-navigation .nav-links,
nav.post-navigation .nav-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    align-items: start;
    width: 100%;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    font-size: 14px;
    min-width: 0;
    max-width: 100%;
}

.post-navigation .nav-previous { text-align: left; }
.post-navigation .nav-next     { text-align: right; }

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: block;
    color: var(--color-black, #1a1a1a);
    text-decoration: none;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 12px;
    color: var(--color-gray, #767676);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.post-navigation .nav-title {
    font-weight: 700;
    color: var(--color-black, #1a1a1a);
    line-height: 1.35;
    font-size: 14px;
}

.post-navigation a:hover .nav-title {
    color: var(--color-primary, #5C4096);
}

@media (max-width: 768px) {
    .post-navigation .nav-links,
    nav.post-navigation .nav-links {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .post-navigation .nav-next { text-align: left; }
}


/* =============================================================
   8. UTILIDADES, COMENTARIOS, SHARE, TAGS, SOCIAL, PRINT
   ============================================================= */

/* ===== COMMENTS (legacy — ahora desactivados desde functions.php) ===== */
.comments-area {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 3px solid var(--color-primary);
}
.comments-title { font-size: 1.5rem; margin-bottom: 30px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
}
.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: #222; font-style: normal; }
.comment-metadata { font-size: 13px; color: #767676; margin-bottom: 10px; }
.comment-content { font-size: 15px; line-height: 1.6; color: #333; }
.reply { margin-top: 10px; }
.comment-reply-link { font-size: 13px; color: var(--color-primary); font-weight: 700; }

.comment-form { margin-top: 30px; }
.comment-form p { margin-bottom: 15px; }
.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 14px;
    color: #555;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
}
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form .submit {
    padding: 12px 30px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}
.comment-form .submit:hover { background: #4a3278; }


/* ===== NO RESULTS ===== */
.no-results {
    text-align: center;
    padding: 60px 0;
}
.no-results h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #222;
}
.no-results p {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
}


/* ===== UTILIDADES ===== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { margin-left: -80px; margin-right: -80px; max-width: 1200px; }
.alignfull { margin-left: calc(-100vw / 2 + 100% / 2); margin-right: calc(-100vw / 2 + 100% / 2); max-width: 100vw; }


/* ===== SHARE BUTTONS ===== */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.share-buttons-label {
    font-size: 13px;
    font-weight: 700;
    color: #555;
}
.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f7f7f7;
    color: #555;
    transition: all 0.2s ease;
}
.share-button:hover { background: var(--color-primary); color: white; }
.share-button svg { width: 16px; height: 16px; }


/* ===== TAG CLOUD ===== */
.tagcloud { display: flex; gap: 8px; flex-wrap: wrap; }
.tagcloud a {
    display: inline-block;
    padding: 5px 12px;
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    font-size: 13px !important;
    color: #555;
    transition: all 0.2s ease;
}
.tagcloud a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}


/* ===== SOCIAL MENU (TOP BAR) ===== */
.social-menu ul { display: flex; gap: 15px; list-style: none; padding: 0; margin: 0; }
.social-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #767676;
    transition: color 0.2s ease;
}
.social-menu a:hover { color: var(--color-primary); }
.social-menu svg { width: 16px; height: 16px; }


/* ===== MOBILE IMPROVEMENTS ===== */
@media (max-width: 480px) {
    .breaking-news { font-size: 14px; }
    .breaking-news-label {
        font-size: 11px;
        padding: 6px 12px;
        margin-right: 10px;
    }
    .post-featured .entry-title { font-size: 1.4rem; }
}


/* ===== OCULTAR BOTÓN "VOLVER ARRIBA" ===== */
.back-to-top,
button.back-to-top,
.back-to-top.visible {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* ===== PRINT STYLES ===== */
@media print {
    .header-search,
    .header-social,
    .header-menu,
    .breaking-news,
    .sidebar,
    .single-sidebar,
    .footer-newsletter,
    .post-navigation,
    .comments-area,
    .related-posts {
        display: none !important;
    }
    .content-layout,
    .single-post-container .single-layout {
        grid-template-columns: 1fr !important;
    }
}