/**
 * ARTÍCULOS RELACIONADOS
 * Estilos para la sección que aparece al final de los posts
 * 
 * @package TuChildTheme
 */

.articulos-relacionados {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border-color);
}

.articulos-relacionados h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    font-weight: 600;
}

.relacionados-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.relacionado-item {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.relacionado-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

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

.sin-imagen {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.relacionado-titulo {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-color);
    font-weight: 500;
}

.relacionado-item:hover .relacionado-titulo {
    color: var(--primary-color);
}

/* Responsive usando breakpoints */
@media (max-width: 768px) {
    .relacionados-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .relacionados-grid {
        grid-template-columns: 1fr;
    }
    
    .relacionado-item img,
    .sin-imagen {
        height: 180px;
    }
}

/* ============================================
   VER MÁS POR TAG (después del tercer párrafo)
   ============================================ */

.ver-mas-tag {
    margin: 1.5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 1rem;
    border-left: 4px solid var(--primary-color, #0066cc);
}

.ver-mas-contenido {
    max-width: 100%;
}

.ver-mas-etiqueta {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color, #0066cc);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ver-mas-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.ver-mas-imagen {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
}

.ver-mas-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ver-mas-info {
    flex: 1;
}

.ver-mas-titulo {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--contrast, #111);
}

.ver-mas-link:hover .ver-mas-titulo {
    color: var(--primary-color, #0066cc);
}

.ver-mas-boton {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color, #0066cc);
    background: transparent;
    padding: 0;
    transition: transform 0.2s;
}

.ver-mas-link:hover .ver-mas-boton {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .ver-mas-imagen {
        width: 70px;
        height: 70px;
    }
    
    .ver-mas-titulo {
        font-size: 0.9rem;
    }
}